Create a gist now

Instantly share code, notes, and snippets.

Embed
// 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