javascript - jquery simple dropdown multiple trigger -



javascript - jquery simple dropdown multiple trigger -

i'm trying build simple jquery dropdown 2 dropdown menus. here jquery code i'm using:

$('.mydropdown .classes .logo').mouseenter(function(){ $('.mydropdown .classes .dropdown.class-dropdown').slideup(300, function(){ $('.mydropdown .classes .dropdown.school-dropdown').slidedown(); }); }); $('.mydropdown .classes .name').mouseenter(function(){ $('.mydropdown .classes .dropdown.school-dropdown').slideup(300, function(){ $('.mydropdown .classes .dropdown.class-dropdown').slidedown(); }); }); $('.mydropdown .classes ').mouseleave(function(){ $('.mydropdown .classes .dropdown').slideup(); });

my issue is: i'm getting multiple fires of slidedown , slideup actions how ever many times mouse moves in , out logo or name elements, giving bounce type effect until number of mouse ins , outs has finished.

i tried using stop o couldn't work right.

javascript jquery drop-down-menu

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -