Exercises
Challenge exercises may require the use of the official jQuery documentation at http://api.jquery.com/:
- Add a class of
special
to all of the<li>
elements at the second level of the nested list. - Add a class of
year
to all the table cells in the third column of a table. - Add the class
special
to the first table row that has the wordTragedy
in it. - Here's a challenge for you. Select all the list items (
<li>s
) containing a link (<a>
). Add the classafterlink
to the sibling list items that follow the ones selected. - Here's another challenge for you. Add the class
tragedy
to the closest ancestor<ul>
of any.pdf
link.