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
James Home
12,011 PointsJQuery/tags ' Using jQuery to Select Elements'
I am trying to finish task 2/2 in the Using jQuery to Select Elements section. It doesn't seem to like it.
I've used the following syntax:
$("#container");
$("ul li .nav");
Cheers
4 Answers
Amanda Reilly
12,614 PointsIt's actually the ul that has the class of nav, not the li. =)
Caroline Hagan
12,612 PointsTo quote @James Barratt:
Two things that can help get your question answered quicker:
A link to the code challenge you are having issues with
A "working" example of your code using codepen.io
Saying that, I've found it and the question is:
On the next line, use jQuery to select all list items (li) in an unordered list (ul) with the class of 'nav'?
@Amanda is correct in that its the UL, not something inside the LI with a class :-)
Kieran Riggall
2,910 PointsDeleted
ecp
838 Points@James - all the info above from Caroline + Amanda is correct, but if you still have problems please email me at help@teamtreehouse.com :)
Could you include a screenshot of the code challenge/a "working" example of your code as you're working on it and a link to it? Thanks a bundle :D