Posted By

jelontok on 01/04/11


Tagged

javascript menu jquery hover


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

AtticBoy
virendrakryadav


jquery - keep hover states on


 / Published in: jQuery
 

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

  1. // keep hover statea on
  2. $("#mainnav li").hover(function(){
  3. $(this).addClass("on");
  4. }, function(){
  5. $(this).removeClass("on");
  6. });

Report this snippet  

You need to login to post a comment.