I have problems with my clearInterval, It doesn't stop my setInterval, here is code:
$(".auto-check").click(function(){ if($('input[name=autorefresh]').is(':checked') == true){ var intervalId = setInterval(load,4000); } else{ alert("Auto Refresh is off"); clearInterval(intervalId); } }); who can tell, where is problem?