CARVIEW |
Traversing
-
.add()
Miscellaneous TraversingAdd elements to the set of matched elements.
-
.andSelf()
Miscellaneous TraversingAdd the previous set of elements on the stack to the current set.
-
.children()
Tree TraversalGet the children of each element in the set of matched elements, optionally filtered by a selector.
-
.closest()
Tree TraversalGet the first element that matches the selector, beginning at the current element and progressing up through the DOM tree.
-
.contents()
Miscellaneous TraversingGet the children of each element in the set of matched elements, including text and comment nodes.
-
.each()
Collection ManipulationIterate over a jQuery object, executing a function for each matched element.
-
.end()
Miscellaneous TraversingEnd the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
-
.eq()
FilteringReduce the set of matched elements to the one at the specified index.
-
.filter()
FilteringReduce the set of matched elements to those that match the selector or pass the function's test.
-
.find()
Tree TraversalGet the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
-
.first()
FilteringReduce the set of matched elements to the first in the set.
-
.has()
FilteringReduce the set of matched elements to those that have a descendant that matches the selector or DOM element.
-
.is()
FilteringCheck 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. -
.last()
FilteringReduce the set of matched elements to the final one in the set.
-
.map()
FilteringPass each element in the current matched set through a function, producing a new jQuery object containing the return values.
-
.next()
Tree TraversalGet 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.
-
.nextAll()
Tree TraversalGet all following siblings of each element in the set of matched elements, optionally filtered by a selector.
-
.nextUntil()
Tree TraversalGet all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
-
.not()
Filtering, Miscellaneous TraversingRemove elements from the set of matched elements.
-
.offsetParent()
Offset, Tree TraversalGet the closest ancestor element that is positioned.
-
.parent()
Tree TraversalGet the parent of each element in the current set of matched elements, optionally filtered by a selector.
-
.parents()
Tree TraversalGet the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
-
.parentsUntil()
Tree TraversalGet 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.
-
.prev()
Tree TraversalGet the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector.
-
.prevAll()
Tree TraversalGet all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
-
.prevUntil()
Tree TraversalGet all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
-
.siblings()
Tree TraversalGet the siblings of each element in the set of matched elements, optionally filtered by a selector.
-
.slice()
FilteringReduce the set of matched elements to a subset specified by a range of indices.
jQuery API
-
Keyboard navigation now available! Use up, down, tab, shift+tab, shift+upArrow and enter to navigate.
Browse the jQuery API
© 2012 The jQuery Foundation
Sponsored by Media Temple and others.