Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Build an Interactive Website Introduction to jQuery Using jQuery to Select Elements

Kai Tamulonis
Kai Tamulonis
6,582 Points

Selecting in jQuery - Code challenge

The challenge says to use jQuery to select all li in an ul in the class 'nav'. I'm putting this in, but getting a bummer:

$(".nav ul li");

Anything wrong?

1 Answer

You're definitely on the right track, you'd just need to double check the question. It's asking for a ul with the class of nav, not a ul nested in a parent element with the nav class.