I need event element to append div after this event element. With Locker Service. It's Working using jQuery before activation Locker Service. But now i am not getting event target element.
I want to display a div after a button click. I am using lightning.
Here is some code example:
Component
<lightning:button variant="neutral" value="deleteMass" onclick="{!c.doSomething}" />
Component Controller
doSomething: function(cmp, event){
var myButton = $(event.target).closest("button");
// appending a div after that button
var tabbedDiv = $(".tabular-dropdown");
tabbedDiv.insertAfter(pTarget);
}