Doing 3. Variables a different way


I understand the solution with li:nth-child(4). But what if I had several different lists with at least 4 list items each? Wouldn't that eliminate the 4th li from each list?

I tried to assign an id to the proper list item in html:

  • because the hint suggested we could modify things directly with an id or class. So I tried $target = $('bogus'); but that didn't do anything. Probably a syntax error - what am I doing wrong?

  • #2

    Yes, The specificity would need to be dialed up a degree to select a target.


    So how do you do that?