and since you're dealing with an entire UL rather than targeting specific sections within the element, if you're dead-set on doing it programmatically you might as well assign the class 'hilight' to the UL rather than all the child A's
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/