SyntaxFix
Write A Post
Hire A Developer
Questions
You have to assign the returned value of the setInterval function to a variable
setInterval
var interval; $(document).on('ready',function(){ interval = setInterval(updateDiv,3000); });
and then use clearInterval(interval) to clear it again.
clearInterval(interval)