event.delegateTargetReturns: Element
Description: The element where the currently-called jQuery event handler was attached.
version added: 1.7event.delegateTarget
.delegate()
or .on()
, where the event handler is attached at an ancestor of the element being processed. It can be used, for example, to identify and remove event handlers at the delegation point.
event.delegateTarget
will always be equal to event.currentTarget
.
Example:
1
2
3
|
|