and since you're dealing with an entire UL, rather than targetting
sections if you're dead set on doing it programatically you might
aswell assign the class hilight to the UL rather than all the child A
and have the css below to handle that

ul.hilight a { background-color:#f00; color:#fff; }

On Apr 24, 11:34 am, "ryan.j" <ryan.joyce...@googlemail.com> wrote:
> it's easier as a CSS jobby, rather than JS
>
> ul:hover a { background-color:#f00; color:#fff; }
>
> but that won't work in ie6 though.
>
> On Apr 24, 9:26 am, Joseph Le Brech <jlebr...@hotmail.com> wrote:
>
> > why do you need to give it a class programmaticaly?
>
> > try this:
>
> > $("ul a").addClass("highlight");
>
> >http://docs.jquery.com/Selectors/descendant#ancestordescendant
>
> > _________________________________________________________________
> > Share your photos with Windows Live Photos – 
> > Free.http://clk.atdmt.com/UKM/go/134665338/direct/01/

Reply via email to