jQuery & jQuery UI Documentation

jQuery & jQuery UI

Tree Traversal

  • .children()

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

  • .closest()

    Get the first element that matches the selector, beginning at the current element and progressing up through 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.

  • .offsetParent()

    Get the closest ancestor element that is positioned.

  • .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, optionally filtered by a 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.