jQuery event.target Property
Return which DOM element triggered the event:
$("div").html("Triggered by a " + event.target.nodeName + " element.");
Try it yourself »
Definition and Usage
The event.target property returns which DOM element triggered the event.
It is often useful to compare event.target to this in order to determine if the event is being handled due to event bubbling.
|event||Required. The event parameter comes from the event binding function|
Thank You For Helping Us!
Your message has been sent to W3Schools.