$("li.category-top >ul").hide();
$(".category-top").mouseover(function(){
$(this).children("ul").show();
});
$(".category-top").mouseleave(function(){
$(this).children("ul").hide();
});
$(li.category-top >ul).hide(); $(.category-top).mouseover(function(){ $(this).children(ul).show(); }); $(.category-top).mouseleave(function(){ $(this).children(ul).hide(); });
Share
Perhaps this:
Demo of the technique: http://jsfiddle.net/ambiguous/aKvkb/
References:
hovertoggle