Refresh menu on .mouseout
I have a menu within a page, I have an active class applied to the relevant menu item in relation to the page.
This active class is reused when another menu item is hovered over, and is r开发者_高级运维emoved from the original menu item.
How can I make the menu <div>
refresh when I .mouseout from #menu?
$(function() {
$("#menu").mouseout(function(){
// refresh logic here
});
});
Mouseleave is also an option, depends on your situation. Read Shawn's comment ...
精彩评论