I have a drop down menu. Now when it\'s slided down to multiple levels, I\'d like it to add wait time for like 2 secs, before it disappears, so the user can get back in, whe
I would like to add to Paolo Bergantino that you can do this without the data attribut:
var timer; $('.icon').hover(function() { clearTimeout(timer); $('li.icon > ul').slideDown('fast'); }, function() { timer = setTimeout(function() { $('li.icon > ul').slideUp('fast'); }, 2000); });