How can one use jQuery to select list items from an unordered list that has a specific class? The exact question reads “On the next line, use jQuery to select all list items (li) in an unordered list (ul) with the class of ‘nav’?”
I have tried several times on treehouse but it won’t let me pass!
$(".nav ul li");
Your selector
$(".nav ul li")means someelement with class nav has ul,if ul has class nav then try this.