I have some hover() JS code:
$( '.leftMenuProductWrapper').hover (
function () {
},
function () {
});
In the second function, I need something like:
If ($("#leftMenuWrapper2").hasMouseover){
do this
}else{
do that};
I can't find any documentation on how to do it.
EDIT:
This appears to be a solution:
$('#leftMenuWrapper2').mouseenter(function(){
mouseover = true;
}).mouseleave(function(){
mouseover = false;
});
And then later on in the code, reference it:
if(mouseover == false){
doSomething
};