Jq Event Target
# jQuery event.target property
[ jQuery Event Methods](#)
## Example
Return which DOM element triggered the event:
$("p, button, h1").click(function(event){
$("div").html("Triggered by " + event.target.nodeName + " element.");
});
[Try it Β»](#)
* * *
## Definition and Usage
The event.target property returns which DOM element triggered the event.
This is useful for comparing event.target and _this_ to determine if the event was handled due to event bubbling.
* * *
## Syntax
_event_.target
| Parameter | Description |
| :--- | :--- |
| _event_ | Required. The _event_ parameter comes from the event binding function. |
* * jQuery Event Methods](#)
YouTip