jquery - keep hover states on

/ Published in: jQuery
Save to your folder(s)

keeps hover states on for top level dropdown menu items or accordions

Copy this code and paste it in your HTML
  1. // keep hover statea on
  2. $("#mainnav li").hover(function(){
  3. $(this).addClass("on");
  4. }, function(){
  5. $(this).removeClass("on");
  6. });

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.