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 trialAdam Sackfield
Courses Plus Student 19,663 PointsI have just looked at both questions and the objective of each seems very clear to me. Perhaps I can clarify it for you.
2 Answers
Ricardo Hill-Henry
38,442 PointsI assume you're referring to the second question. If so, I'd have to agree.
From what I gathered, I believed the question wanted this:
$('ul li.nav');
What they really want is: within an unordered list with the class "nav", select all the list items.
Adam Sackfield
Courses Plus Student 19,663 PointsIf your are indeed referring to question 2 "On the next line, use jQuery to select all list items (li) in an unordered list (ul) with the class of 'nav'?"
First an unordered list with a class of nav, and every list item with it.
$("ul.nav li")
Perhaps it's the selector you are confused with Ricardo Hill-Henry you selected an li with the class of nav inside a ul
Ricardo Hill-Henry
38,442 PointsI understood it before I posted. That's why I added the sentence rephrasing the question for the OP. I just didn't want to give away the answer.
Adam Sackfield
Courses Plus Student 19,663 PointsFair one! I didn't read your last line. Haha my bad! :)
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsWhich question are you referring too?