jQuery TraversingLesson 23Free preview
jQuery Descendants
This lesson is part of jQuery · All levels
Summary
The descendant method is used to move under the DOM structure towards the child and the offspring of the element. The combination of the two makes interior selection much more concise than writing long selectors.
Key points
- Take the child straight without looking any deeper.
- Search all of the descendants according to the given selector
- Find() must be given a selector as a parameter
- Children() can be filtered with an optional selector
- Both of them return jQuery objects so they can be linked.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.