Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Working with jQuery Collections !
You have completed Practice Working with jQuery Collections !
Preview
This video covers one solution to the challenge.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
As with most things, when it comes to
coding, the more practice, exposure, and
0:00
time you spend, the more and
more it will sink in.
0:00
So keep at it.
0:02
The first challenge reads, add a featured
tag to the second item in the list.
0:04
Append a new span element containing
the word featured to the list item.
0:09
Add a class of featured
to the new span element.
0:14
So this is two parts.
0:18
For the first part,
0:22
I use the equals method to traverse
to the second list item, passing in
0:24
a 1 because the items in a jQuery
collection are zero index like an array.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up