jQuery MiscLesson 30Free preview
jQuery Filters
This lesson is part of jQuery · All levels
Summary
Pseudo-filter selectors expand the capabilities of jQuery selectors with rules based on position and content. For example:first, last, even, odd, and working on the element order. There are also content-based filters such as: contains() as well as header and animated filters for more specific needs.
Key points
- Filter position: first, last, and last
- :even and :odd filters select elements based on even and odd numbers
- Filter:contains(text) selects elements that contain a specific text
- Filter:header selects element heading h1 to h6
- Filter:animated Select the element that is animated
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.