I have jover () JS code:
$( '.leftMenuProductWrapper').hover (
function () {
},
function () {
});
In the second function, I need something like:
If ($("#leftMenuWrapper2").hasMouseover){
do this
}else{
do that};
I can not find documentation on how to do this.
EDIT:
It looks like a solution:
$('#leftMenuWrapper2').mouseenter(function(){
mouseover = true;
}).mouseleave(function(){
mouseover = false;
});
And then in the code, reference it:
if(mouseover == false){
doSomething
};
Jared source
share