hover - jquery removes/adds class only once -


my jquery code:

$(document).ready(function() { $("#adminbar").mouseover(function () { $(this).addclass("adm_bar").slidedown("slow"); }); $("#adminbar").mouseout(function () { $(this).removeclass("adm_bar").slideup("slow"); }); }); 

but when hover div #adminbar, adds/removes class once, if try again, wont work. want able hover many times want.
whats wrong?

edit: on top of page, my website(under construction)

looks when use slideup, jquery automatically sets display none, can't hover element doesn't "exist" - still there not "hoverable".

after slideup try adding display : "block" property , visibility: "hidden".

you should able hover element way.


Comments