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.isDefaultPrevented()

Returns whether event.preventDefault() was ever called on this event object. event.isDefaultPrevented() version added: 1.3 This method does not accept any arguments. Examples: Checks whet

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.

event.currentTarget

The current DOM element within the event bubbling phase. This property will typically be equal to the this of the function. If you are using jQuery.proxy or another form of scope manipulation, this will be equal to whatever context you have provided, not event.currentTarget event.currentTarget version added: 1.3 Exampl

.error()

Bind an event handler to the "error" JavaScript event. This method is a shortcut for .on( "error", handler ). As of jQuery 1.8, the .error() method is deprecated. Use .on( "error", handler ) to attach event handlers to the error event instead. The error event is sent to elements, such as images, that are referenced by a document and loaded by the browser. It is called if the element was not loaded correctly. For example, consider a page with a simple

event.isImmediatePropagationStopped()

Returns whether event.stopImmediatePropagation() was ever called on this event object. This property was introduced in DOM level 3. event.isImmediatePropagationStopped() version added: 1.3 This method does not accept any arguments.

:eq() selector

Select the element at index n within the matched set. The index-related selectors (:eq(), :lt(), :gt(), :even, :odd) filter the set of elements that have matched the expressions that precede them. They narrow the set down based on the order of the elements within this matched set. For example, if elements are first selected with a class selector (.myclass) and four elements are returned, these elements are given indices 0 through 3 for the purposes of

.end()

End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. Most of jQuery's DOM traversal methods operate on a jQuery object instance and produce a new one, matching a different set of DOM elements. When this happens, it is as if the new set of elements is pushed onto a stack that is maintained inside the object. Each successive filtering method pushes a new element set onto the stack. If

:empty selector

Select all elements that have no children (including text nodes). This is the inverse of :parent. One important thing to note with :empty (and :parent) is that child elements include text nodes. The W3C recommends that the <p> element have at least one child node, even if that child is merely text (see http://www.w3.org/TR/html401/struct/text.html#edef-P). Some other elements, on the other hand, are empty (i.e. have no children) by definition:

Element selector (“element”)

Selects all elements with the given tag name. JavaScript's getElementsByTagName() function is called to return the appropriate elements when this expression is used. jQuery( "element" ) version added: 1.0 Examples: Finds every DIV element. <!doctype html> <html