- I've got a list similar to the following:
- Item 2 needs to have a class added to the li using jquery. I've tried the following but it isn't working:
I'm new to jquery so I'm shooting in the dark somewhat here so if anyone can point me in the right direction is would be most appreciated.
I should mention that there'll be a few of these nested lists, the parents (li) of which will all need a class added via jquery.