Category: Tree Traversal

Category: Tree Traversal

.children()

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

.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.

.find()

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

.next()

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.

.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, or jQuery object passed.

.parent()

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

.parents()

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

.parentsUntil()

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.

.prev()

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.

.prevAll()

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

.prevUntil()

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

.siblings()

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

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/category/traversing/tree-traversal

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部