event.target
The event.target
property in jQuery refers to the DOM element that initiated the event.
event.target
property ExampleDisplay the tag's name on click
$("button").click(function(e){ $('#log').append('<p>the tag\'s name on click is: '+ e.target.nodeName +'</p>'); });