Skip to content

Instantly share code, notes, and snippets.

@Kcko Kcko/example.html
Created May 10, 2018

Embed
What would you like to do?
// CLICK on button
<div class="box">
<button>Button</button>
</div>
$( "body" ).on( "click", ".box", function(e) {
e.delegateTarget; // body
e.currentTarget; // .box
e.target; // button
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.