I am trying to apply a hover in and hover out effect on a button and a div will popup above the hovered button. The popup div will disappear if user hover out of the button.
Try:
$('.helpImg').css({'cursor': 'pointer'}).hover(function(){ $('#tool').show(150); }, function (){ $('#tool').not(':visible').hide(50); }); $('#tool').mouseout(function(){ this.style.display = 'none'; })