[jQuery] Re: Basic problem - using .click and .hover together on elements

2008-10-11 Thread rolfsf
If you're only trying to get a color change on an anchor when you hover, then just do that with CSS - there's no need to use javascript for that li a { color: black } li a:hover { color: red } The only real hitch is if you're trying to hover over something other than an anchor (like a div or a s

[jQuery] Re: Basic problem - using .click and .hover together on elements

2008-10-11 Thread jez_p
Thank you very much for your help Eric - and for replying so quickly. All I had left to do was to give the default menu item the class of "clicked" and it works just how I want it. Thanks again. On Oct 11, 8:24 pm, Eric <[EMAIL PROTECTED]> wrote: > Great question, jez_p! > > You've described a

[jQuery] Re: Basic problem - using .click and .hover together on elements

2008-10-11 Thread Eric
Great question, jez_p! You've described a common problem. You'll be happy to know that there's a solution, _and_ that it will help you out in a number of other ways as you move forward. The solution involves separating the 'clicked' and 'hovered' states, and then specifying that the link is red o