jQuery Introduction | Traversing Elements

Tree Traversing

Tree traversing means the process of searching through the DOM tree from a specific element to the element you want to select by using relationships with other elements.

This tree traversal can be divided into the following three areas.

  1. Traversing ancestor elements
  2. Traversing descendant elements
  3. Traversing sibling elements