141
rated 0 times
[
143]
[
2]
/ answers: 1 / hits: 33446
/ 12 Years ago, sun, may 13, 2012, 12:00:00
I want to change setInterval function time when my code is running.
I try this
<script type=text/javascript>
$(function () {
var timer;
function come() { alert(here); }
timer = setInterval(come, 0);
clearInterval(timer);
timer = setInterval(come, 10000);
});
</script>
First SetInterval does not work!
More From » jquery