what i need is:
click in a button and make the blink event stop.
this is how i’m trying to do:
var blink = function(){
$('#blinker').toggle();
};
setInterval(blink, 800);
$("#stopBlink").click(function(){
clearInterval(blink);
});
and dos not work, what i’m missing ?
Thanks!
All you need to do is:
I’d recommend adding:
After the clearInterval.