May 2017
Intermediate to advanced
448 pages
10h 10m
English
|
Traversal method |
Returns a jQuery object containing... |
|
.parent([selector]) |
The parent of each selected element, optionally filtered by a selector. |
|
.parents([selector]) |
All ancestors, optionally filtered by a selector. |
|
.parentsUntil([selector], [filter]) |
All ancestors of each selected element up to and not including the first element matching selector, optionally filtered by an additional selector. |
|
.closest(selector) |
The first element that matches the selector, starting at the selected element and moving up through its ancestors in the DOM tree. |
|
.offsetParent() |
The positioned parent, either relative or absolute, of the first selected element. |
Read now
Unlock full access