event.stopPropagation()

Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. We can use event.isPropagationStopped() to determine if this method was ever called (on that event object). This method works for custom events triggered with trigger() as well. Note that this will not prevent other handlers on the same element from running. Since the .live() method handles events once they have propagated to the top o

.filter()

Reduce the set of matched elements to those that match the selector or pass the function's test. Given a jQuery object that represents a set of DOM elements, the .filter() method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against each element; all elements matching the selector will be included in the result. Consider a page with a simple list on it: <ul> <li>list item 1</li&

event.isPropagationStopped()

Returns whether event.stopPropagation() was ever called on this event object. This event method is described in the W3C DOM Level 3 specification. event.isPropagationStopped() version added: 1.3 This method does not accept any arguments.

event.result

The last value returned by an event handler that was triggered by this event, unless the value was undefined. This property can be useful for getting previous return values of custom events. event.result version added: 1.3 Examples: Display previous handler's return value

event.relatedTarget

The other DOM element involved in the event, if any. For mouseout, indicates the element being entered; for mouseover, indicates the element being exited. event.relatedTarget version added: 1.1.4 Examples: On mouseout of anchors, alert the element type being entered. $(

event.pageY

The mouse position relative to the top edge of the document. event.pageY version added: 1.0.4 Examples: Show the mouse position relative to the left and top edges of the document (within this iframe). <!doctype html> <html lang="en"> <head> <meta charset="utf

event.target

The DOM element that initiated the event. The target property can be the element that registered for the event or a descendant of it. It is often useful to compare event.target to this in order to determine if the event is being handled due to event bubbling. This property is very useful in event delegation, when events bubble. event.target version added: 1.0

event.metaKey

Indicates whether the META key was pressed when the event fired. Returns a boolean value (true or false) that indicates whether or not the META key was pressed at the time the event fired. This key might map to an alternative key name on some platforms. On Macintosh keyboards, the META key maps to the Command key (รข). On Windows keyboards, the META key maps to the Windows key. event.metaKey

event.data

An optional object of data passed to an event method when the current executing handler is bound. event.data version added: 1.1 Examples: Within a for loop, pass the value of i to the .on() method so that the current iteration's value is preserved. <!doctype html> <html l

event.delegateTarget

The element where the currently-called jQuery event handler was attached. This property is most often useful in delegated events attached by .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. For non-delegated event handlers attached directly to an element, event.delegateTarget will always be equal to event.