On Thu, Jan 14, 2010 at 10:06 PM, brian <zijn.digi...@gmail.com> wrote: > On Thu, Jan 14, 2010 at 9:53 PM, J <jesseparent...@gmail.com> wrote: >> Hi, >> >> Im new to jquery. >> >> I have a .hover that is applied to all ul li a >> $("ul li a").hover >> >> Question: How can I apply the .hover to a specific class or id? >> >> I tried something like this but it didn't work for me: >> $("#test ul li a").hover > > Which element has id 'hover'? If it's the parent of the UL this should work.
I meant id 'test'. >> $("test ul li a").hover > > This won't work because the selector presupposes 'hover' tag, which > doesn't exist. I meant, a 'test' tag.