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

First Code Challenge in Build an Interactive Website Help

I cant figure out how to do the second task. Here is my code: $("#container"); $("nav ul li"); Can anyone help?

2 Answers

What you are doing is selecting all of the nav elements then all of the ul elements that are children of them and finally all the li's that are children of the ul's. What you need to do is select all of the ul's then only the ul's with the class of .nav like this ul.nav and then all of the ul's children that are li's.

Does that make sense?

Thanks for the reply! It really helped!