.empty()

Remove all child nodes of the set of matched elements from the DOM. This method removes not only child (and other descendant) elements, but also any text within the set of matched elements. This is because, according to the DOM specification, any string of text within an element is considered a child node of that element. Consider the following HTML: <div class="container"> <div class="hello">Hello</div> <div class="goodbye"&g

:even selector

Selects even elements, zero-indexed. See also odd. In particular, note that the 0-based indexing means that, counter-intuitively, :even selects the first element, third element, and so on within the matched set. Because :even is a jQuery extension and not part of the CSS specification, queries using :even cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance when using :ev

:enabled selector

Selects all elements that are enabled. As with other pseudo-class selectors (those that begin with a ":") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ( "*" ) is implied. In other words, the bare $( ":enabled" ) is equivalent to $( "*:enabled" ), so $( "input:enabled" ) or similar should be used instead. Although their resulting selections are usually the same, :enabled selector is subtly d

:disabled selector

Selects all elements that are disabled. As with other pseudo-class selectors (those that begin with a ":"), it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ("*") is implied. In other words, the bare $(':disabled') is equivalent to $('*:disabled'), so $('input:disabled') or similar should be used instead. Although their resulting selections are usually the same, the :disabled selector is subtly

.die()

Remove event handlers previously attached using .live() from the elements. Any handler that has been attached with .live() can be removed with .die(). This method is analogous to calling .off() with no arguments, which is used to remove all handlers attached with .on(). See the discussions of .live() and .off() for further details. If used without an argument, .die() removes all event handlers previously attached using .live() from the elements. As of

.detach()

Remove the set of matched elements from the DOM. The .detach() method is the same as .remove(), except that .detach() keeps all jQuery data associated with the removed elements. This method is useful when removed elements are to be reinserted into the DOM at a later time. .detach( [selector ] ) version added: 1.4 selector

.delegate()

Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. As of jQuery 1.7, .delegate() has been superseded by the .on() method. For earlier versions, however, it remains the most effective means to use event delegation. More information on event binding and delegation is in the .on() method. In general, these are the equivalent templates for the two methods: // jQu

.eq()

Reduce the set of matched elements to the one at the specified index. Given a jQuery object that represents a set of DOM elements, the .eq() method constructs a new jQuery object from one element within that set. The supplied index identifies the position of this element in the set. Consider a page with a simple list on it: <ul> <li>list item 1</li> <li>list item 2</li> <li>list item 3</li> <li>

Descendant selector (“ancestor descendant”)

Selects all elements that are descendants of a given ancestor. A descendant of an element could be a child, grandchild, great-grandchild, and so on, of that element. jQuery( "ancestor descendant" ) version added: 1.0 Examples: Mark all inputs that are descendants of a form with a dotted blue

.dequeue()

Execute the next function on the queue for the matched elements. When .dequeue() is called, the next function on the queue is removed from the queue, and then executed. This function should in turn (directly or indirectly) cause .dequeue() to be called, so that the sequence can continue. .dequeue( [queueName ] ) version added: 1.2