1
I’m using the method is
to check if, after a while, the mouse is inside or outside an element. However, for some reason, it is giving the following error:
Uncaught Typeerror: Aucon.is is not a Function
Part of the code:
let AuCon = document.getElementById('AudioConfig');
AuCon.addEventListener('mouseout', Para);
function Para() {
setTimeout(function(){if(AuCon.is(':hover')){AniVoltar}}, 1000);
}
function AniVoltar()
{
//Código irrelevante.
}
#AudioConfig
{
display: inline-block;
width: 50px;
height: 50px;
background-color: black;
}
<div id="AudioConfig">
<!--Conteudo-->
</div>
In that code I literally did exactly as I was in documentation.
Hey, thanks man, I can’t thank you enough, success!!!
– JAMDev