Wordpress jQuery menu development -


i'm pretty new jquery in wordpress. have managed blend in submenu when mouse on first-level element of menu.

$('li.menu-item').mouseenter(function() {     $(this).children().fadein(); }); 

when user leaves 2nd level elements of menu disappears should.

$('li.menu-item > ul').mouseleave(function() {     $(this).fadeout('fast'); }); 

my problem now, when move mouse 1 first-level element next both 2nd-level menus shown. tried

$('li.menu-item').mouseleave(function() {     // $(this).children().fadeout(); }); 

but 1st-level element disappears well.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -