$(function() { $(".menu>ul>li").hover(function() { $(this).stop(false, true).addClass("on"); $(this).children("ul").stop(false, true).slideDown(300); }, function() { $(this).stop(false, true).removeClass("on"); $(this).children("ul").stop(false, true).slideUp(300) }) })