I have the following code that toggles the visibility of a div when another div is clouded. It works great, except when you hover over it and exit it, and it toggles all the switches:
$(document).ready(function() { $('.trigger').mouseover(function(){ $('.info').toggle(400); }).mouseout(function(){ $('.info').toggle(400); }); });
I tried this, but it doesn't seem to work (this creates problems with the visibility of the overloaded div and ends up not showing it at all)
$(document).ready(function() { $('.trigger').mouseover(function(){ $('.info').stop().toggle(400); }).mouseout(function(){ $('.info').stop().toggle(400); }); });
How do I get rid of the line here?
jquery queue toggle onmouseover
Dan
source share