How to remove class Conditionally ?
- by Wazdesign
$("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.