jquery - resetting timer
- by Phil Jackson
Hi, im using a plugin to do something ever 10 secs:
function status_updates(){
$("p").everyTime(1000,function(i) {
if(i==10){
alert("foo");
// something here
}else{
$(this).html(i);
}
});
}
status_updates();
where it says something here I need to add something to reset the timer but i dont know how. The plugin is here: http://jquery.offput.ca/every/ or if you know of an other way it would be much appreciated.