Relationship Between Elements

Get introduced to DOM traversal and the different relationships between DOM elements.


jQuery allows us to traverse up, down, and sideways in the DOM tree when given the initial selectionThe element selected via a selector.. Using the jQuery interface, we can easily traverse through a web page to find elements based on their relationship with other elements. This process makes querying for target elements more convenient.

Get hands-on with 1200+ tech skills courses.