I have an anchor tag in the component where i need to get the id of the anchor tag to my JavaScript controller.
Component
<a class="notifLinkTwo" data-toggle="dropdown" aria-haspopup="true" id="notificationDropdownId" aria-expanded="false" onclick="{!c.clickButtonTwo}">
Controller
clickButtonTwo : function(component, event, helper){
var x = document.getElementById("notificationDropdownId");
alert('x: '+ x);
}
Currently I am not getting the value for the x in the alert.