[jQuery] Re: Trouble with adding 'addClass' to an existing piece of Jquery code

2008-12-11 Thread Jim D
Oh, one more thing I forgot, change the .menu-on declaration to .menu- on a

[jQuery] Re: Trouble with adding 'addClass' to an existing piece of Jquery code

2008-12-10 Thread MorningZ
Wow, that code doesn't make much sense you have the selector li.main-nav, which i am assuming grabs all 5 of those top level links as you hover on each one of them, you reselect all those and add the class menu-on to them, that wouldn't make sense since you would seemingly only want to apply

[jQuery] Re: Trouble with adding 'addClass' to an existing piece of Jquery code

2008-12-10 Thread Ted
I'm using mouseenter and mouseleave because when I was trying to toggle the menus with hover it wasn't working well. On the suggestion of someone else on this forum I used the bind function to call the code on the item and it's children. Now, I just need the top level item to keep it's hover