The best jQuery traversal Tutorial In 2024, In this tutorial you can learn What is a traverse?,DOM traversal,
jQuery traversal, which means "move", according to their relationship with other elements to "Find" (or select) HTML elements. Select an item to begin, and the choice to move along until the elements you expect to arrive.
The figure below shows a family tree. By jQuery traversal, you can choose from the (current) element start, easily move (ancestral) in the family tree upward, downward movement (offspring), horizontal movement (compatriots). This movement is called the DOM traversal.
Icon Analysis:
Ancestors father, grandfather, great-grandfather and so on. Descendant is a child, grandson, great-grandchildren, and so on. Compatriots have the same parent. |
jQuery provides several DOM traversal methods.
Traversal methods largest species is the tree traversal (tree-traversal).
The next chapter will explain how up in the DOM tree, and under similar move.