clare485
11/7/2014 - 2:15 PM

Add classname on hover, remove classname with a delay (timeout) from here: http://stackoverflow.com/questions/10318378/jquery-removeclass-n

Add classname on hover, remove classname with a delay (timeout)

from here: http://stackoverflow.com/questions/10318378/jquery-removeclass-not-working-inside-settimeout


     jQuery("ul.level0").hover(function(){
          jQuery(this).parent().addClass("hover");
      },
      function(){
        var self = this;
        setTimeout(function() {
            jQuery(self).parent().removeClass('hover');
      },600);
    });