Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript jQuery Basics Understanding jQuery Events and DOM Traversal What is Traversal?

Boby Vilayvong
Boby Vilayvong
13,039 Points

The "What is Traversing?" link in the Teacher's note has a 404 - Page not found error. ?

The "What is Traversing?" link in the Teacher's note has a 404 - Page not found error. ?

Antti Lylander
Antti Lylander
9,686 Points

https://www.w3schools.com/js/js_htmldom_navigation.asp

It's as simple thing as moving up or down on DOM tree. Say you have selected ul element and want to change its child elements. Then you can traverse to it's child elements (li).

You would want to do because you want to iterate over all child elements and selecting every child separately is inconvenient or because you have a good selector (id or class) only for the parent element and so on.

2 Answers

Steven Parker
Steven Parker
231,269 Points

That link seems to have a typo in it, the actual link is jQuery Travsersing.

You may want to report the typo to the Support staff.

Boby Vilayvong
Boby Vilayvong
13,039 Points

Yeah the Support staff knows about it. Thanks guys!