![]() |
jQuery navigation hiding before I can click menu items
I have a very simple navigation where I am using jquery to hide and show submenues on mouseover and hide them on mouseleave. When you hover over the main navigation it shows like it should but when you try to move your mouse down to click on the submenu items they hide. UGH!! Im not sure what to do about this.
I know from trial and error that it the speed that is killing it for me. When I remove the 400 it works fine but I that shouldn't affect the code that it is. Even if I add "slide inside the show function it still acts funny." Does anyone have any ideas? Code:
function nav(){ |
Does anyone have any ideas why the animation wont work?
|
Without further looking into it I notice a syntax error:
Code:
$('div#nav ul li ul').hide();;For everything else we need to see more of your site – a link to a live example would be good. Alternatively there are sites like http://jsbin.com/, for example, where you can test your code and show it to others. |
SIMPLE sliding jquery navigation-works great now!
I figured it out. I was trying to be too specific with the hide script and I was hiding my menu when I was leaving particular elements within the list item. LOL! This is my script and it works well now. I also added in the click to toggle part because when you are on a mobile device the menu wont hide because there is no mouseleave. :-)
Code:
function nav(){ |
| All times are GMT +1. The time now is 02:58 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.