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 Introduction to jQuery Hello, jQuery! Filtering Matched Elements

Matched Elements??

Can someone explain what Matched Elements mean in jQuery? I know it's simple but I'm not getting it.

2 Answers

This is the selector. $("p") It would be the element you want to do something with. All the p elements on the page would be the matched elements

Christopher Debove
PLUS
Christopher Debove
Courses Plus Student 18,373 Points

The matched elements are the elements that match with the selector you pass as argument to $(). Like CSS selectors.