[jQuery] quite non-elegant code. please advise!
This is my first jquery function, and im trying to handle rollovers
and click. The behavior i want is to toggle a class on hover for each
li element, and then disable the hover on the one that is clicked and
selected.
Right now im using three separate handlers; click, mouseover, and
mouseout, and then using if statements to check if it has the
"highlight" class.
bah. bah?
thank you.