[jQuery] Re: Newbie Question: Finding and manipulating an element

2010-03-02 Thread Greg Tarnoff
Aaron, Not sure if you caught it, but I screwed up some quotes in my code snippet (stupid iphone). It should be: $('ul.foo li ul').addClass("bar"); On Mar 1, 9:25 am, Aaron Johnson wrote: > Greg, Nathan, Thanks very much for your help! > > On 1 March 2010 14:58, Nathan Klatt wrote: > > > On M

[jQuery] Re: Newbie Question: Finding and manipulating an element

2010-03-01 Thread Greg Tarnoff
This will add the class for you. Put it in the document ready function if you want it on page load or in whatever function you want to call it from. $('ul.foo li 'ul").addClass("bar"); On Mar 1, 5:06 am, Aaron Johnson wrote: > Hello... > > I have an unordered list containing nested lists... > >