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 trialJustin Townsend
4,720 PointsI dont understand what to do
I dont understand what to do even though i watched the video 3 times
2 Answers
Sean T. Unwin
28,690 PointsWe want to display the hidden li
elements.
To do this we use the syntax, $('li')
. This will create a jQuery object containing all the li
elements.
We want to narrow this down using the pseudo-selector, :hidden
. This is a CSS trait that can be determined by the property declaration of display: none
.
This means that we append the pseudo-selector string to our element string which is, $('li:hidden')
.
The final step is to call the show()
function by appending it to our jQuery object using dot-notation (this is called method chaining). You can see this in the video @ 3:52.
Justin Townsend
4,720 PointsThank you!! I really appreciate your help