I'm summarizing my key problem here.
I've the different links on which I want to check if the user moves the mouse outside the list or not.
$('li').hover(function(){
//do something here
},function(){
setTimeout(function(){
if($('li').is(':hover') === false )
console.log('out');
},100);
});
Where, if($('li').is(':hover') === false ) is to check if the hover is there or not in all lists.
Suppose, if you hover on bar and hover on foo then it should not log the text out but if you hover on bar and move mouse outside any list i.e. foo in my example then it should log out