So, I created a simple little slope that uses the class from the link to show the div below it.
The show / hide function works fine, but I canβt figure out how to install it so that if the mouse is above the div, it will not hide. I tried using (this) and .hover, without success.
Here is my code:
$(document).ready(function() { // hide all dropdown $("#dropdown1").hide(); //hover show dropdown $(".menu-level-one").hover( function () { $("#dropdown1").show(); }, function () { var postTimer1 = setTimeout(function(){ $("#dropdown1").hide(); }, 1000); } ); });
Jake
source share