jquery - Dropdown menu needs to stay open after .hover -


ok, have tried many things , nothing seems working. dropdown menu stay open few seconds after user has hovered on (which i'm thinking cause usability issues), how can make work current code?

$(".dropdown .sub").hover(function () {      $("#menu .holder").show(); }); 

check answer : add delay before .hide() w/jquery

var my_timer; $(".item").hover(     function () {         cleartimeout(my_timer);         $(this).show();     },      function () {         var $this = $(this);         my_timer = settimeout(function () {             $this.hide();         }, 500);     }                        ); 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -