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

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

Jamie Harper
Jamie Harper
1,734 Points

Surely this is a poorly worded question....

Surely...??

Which question are you referring too?

I 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

I 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.

If 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

I 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.

Fair one! I didn't read your last line. Haha my bad! :)