Hello friends, I am wondering if my jquery function is correct
<script>
window.blinker = setInterval(function(){
if(window.alerta){
$('a.cadastrotopo').css('color','#346698');
$('a.cadastrotopo').css('text-decoration','underline');
window.alerta=false;
}
else{
$('a.cadastrotopo').css('color','#000');
$('a.cadastrotopo').css('text-decoration','none');
window.alerta = true;
}
},500);
</script>
is working ok, but I wonder if I'm doing the right way.
I thank you.