/ Published in: jQuery
![](/img/icon_sav.png?v3)
keeps hover states on for top level dropdown menu items or accordions
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// keep hover statea on $("#mainnav li").hover(function(){ $(this).addClass("on"); }, function(){ $(this).removeClass("on"); });
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)