Traversing

Reduce the set of matched elements to the first in the set.

End the most recent filtering operation in the current chain and return the set of matched elements to its previous state.

Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

Iterate over a jQuery object, executing a function for each matched element.

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.

Reduce the set of matched elements to the final one in the set.

Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.

Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.

Reduce the set of matched elements to a subset specified by a range of indices.

Get the children of each element in the set of matched elements, including text and comment nodes.

Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

Remove elements from the set of matched elements.

Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.

Reduce the set of matched elements to the one at the specified index.

Get the siblings of each element in the set of matched elements, optionally filtered by a selector.

Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

Create a new jQuery object with elements added to the set of matched elements.

Reduce the set of matched elements to those that match the selector or pass the functions test.

Get the children of each element in the set of matched elements, optionally filtered by a selector.

Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.

Add the previous set of elements on the stack to the current set.

Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.

Get the parent of each element in the current set of matched elements, optionally filtered by a selector.

Get the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector.

Traversing

Get the closest ancestor element that is positioned.

Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.

For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.

Add the previous set of elements on the stack to the current set, optionally filtered by a selector.

Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.

Leave a Comment