jquery traversing methods

methoddescription
add()add elements to the set of matched elements.
addblack()add the previous set of elements to the current set.
andself()deprecated in version 1.8.
children()get the children of each element in the set of matched elements.
closest()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.
contents()get the children of each element in the set of matched elements(including text and comments nodes)
each()executing a function for each matched element.
end()end the most recent filtering operation in the current chain and return the set of matched elements to its previous state.
eq()reduce the set of matched elements to the one at the specified index.
filter()reduce the set of matched elements to those that match the selector or pass the functions text.
find()get the descendants of each element in the current set of matched elements
first()reduce the set of matched elements to the first in the set.
has()reduce the set of matched elements to those that have a descendant that matches the selector/dom element.
is()checke the current matched set of elements against a selector element and return true if at least one of these elements matches the given arguments.
last()reduce the set of matched elements to the final one in the set.
map()pass each element in the current matched set through a function , producing a new jquery object containing the return values.
next()get the immediately following sibling of each element in the set of matched elements.if selector is provided it retrieves the next sibling only if it matches that selector.
nextall()get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
nextuntil()get all following siblings of each element up to but not including the element matched by the selector/dom node .
not()remove elements from the set of matched elements.
offsetparent()get the closest ancestor element that is positioned.
parent()get the parent of each element in the current set of matched elements.
parents()get the ancestors of each element in the current set of matched elements.
prev()get the immediately preceding sibling of each element in the set of matched elements.
prevall()get all preceding siblings of each element in the set of matched elements.
prevuntil()get all preceding siblings of each element up to but not including the element matched by the selector/dom node.
siblings()get the siblings of each element in the set of matched elements.
slice()reduce the set of matched elements to a subset specified by a range of indices.