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.
- Traversing ancestor elements
- Traversing descendant elements
- Traversing sibling elements