event.currentTarget

The current DOM element within the event bubbling phase.

This property will typically be equal to the this of the function.

If you are using jQuery.proxy or another form of scope manipulation, this will be equal to whatever context you have provided, not event.currentTarget

event.currentTarget
version added: 1.3
Examples:

Alert that currentTarget matches the `this` keyword.

$( "p" ).click(function( event ) {
  alert( event.currentTarget === this ); // true
});
doc_jQuery
2016-03-27 13:48:15
Comments
Leave a Comment

Please login to continue.