Menu
Hi,
I have checkBox in my code which allow me to set interval.
When checkBox is checked, this funcion works well but don’t know why won’t stop when checkBox is unchecked?
If i add alert(“uncecked”) in else block and uncheck listBox,alert popup.So something is about Interval.clearInterval();
Thnaks for any help.
[code]
$(function()
{
$(‘[name=”updataCheckBox”]’).change(function()
{
if ($(this).is(‘:checked’)) {
var Interval=setInterval(function(){
$(“#updateButton”).click();
},2000);
}
else
{
Interval.clearInterval();
}
});
});
[code]