From jQuery JavaScript Library
(Redirected from
Traversing)
Filtering:| Name | Type |
|---|
| eq( index ) | Returns: jQuery |
| Reduce the set of matched elements to a single element. |
| filter( expr ) | Returns: jQuery |
| Keeps only the elements from the set of matched elements that match the specified expression(s). |
| filter( fn ) | Returns: jQuery |
| Keeps only the elements from the set of matched elements where the specified function returns a non-false value. |
| is( expr ) | Returns: Boolean |
| Checks the current selection against an expression and returns true, if at least one element of the selection fits the given expression. |
| map( callback ) | Returns: jQuery |
| Translate a set of elements in the jQuery object into another set of values in a jQuery array (which may, or may not contain elements). |
| not( expr ) | Returns: jQuery |
| Removes elements matching the specified expression from the set of matched elements. |
| slice( start, end ) | Returns: jQuery |
| Selects a subset of the matched elements. |
Finding:| Name | Type |
|---|
| add( expr ) | Returns: jQuery |
| Adds more elements, matched by the given expression, to the set of matched elements. |
| children( expr ) | Returns: jQuery |
| Get a set of elements containing all of the unique immediate children of each of the matched set of elements. |
| closest( expr ) | Returns: jQuery |
| New in jQuery 1.3 Get a set of elements containing the closest parent element that matches the specified selector, the starting element included. |
| contents( ) | Returns: jQuery |
| Find all the child nodes inside the matched elements (including text nodes), or the content document, if the element is an iframe. |
| find( expr ) | Returns: jQuery |
| Searches for descendent elements that match the specified expression. |
| next( expr ) | Returns: jQuery |
| Get a set of elements containing the unique next siblings of each of the given set of elements. |
| nextAll( expr ) | Returns: jQuery |
| Find all sibling elements after the current element. |
| offsetParent( ) | Returns: jQuery |
| Returns a jQuery collection with the positioned parent of the first matched element. |
| parent( expr ) | Returns: jQuery |
| Get the direct parent of an element. If called on a set of elements, parent returns a set of their unique direct parent elements. |
| parents( expr ) | Returns: jQuery |
| Get a set of elements containing the unique ancestors of the matched set of elements (except for the root element). |
| prev( expr ) | Returns: jQuery |
| Get a set of elements containing the unique previous siblings of each of the matched set of elements. |
| prevAll( expr ) | Returns: jQuery |
| Find all sibling elements in front of the current element. |
| siblings( expr ) | Returns: jQuery |
| Get a set of elements containing all of the unique siblings of each of the matched set of elements. |
Chaining:| Name | Type |
|---|
| andSelf( ) | Returns: jQuery |
| Add the previous selection to the current selection. |
| end( ) | Returns: jQuery |
| Revert the most recent 'destructive' operation, changing the set of matched elements to its previous state (right before the destructive operation). |