$("li").hoverIntent({
sensitivity: 3,
interval: 200,
over: addOver,
timeout: 500,
out: removeOver
});
function addOver(){ $(this).addClass('over').children('a:first').addClass('active');}
function removeOver(){ $(this).removeClass('over').children('a:first').removeClass('active');}
alert ('version 2 menu');
});
On mouseout I want to remove class of " li > a" if it already dont have class. I want to remove the class of the children.
Edit
If a already have the class active then then i dont want to use that ".removeClass('active')" on mouse out function.
I just want to run this function function removeOver(){ $(this).removeClass('over')