I am using this plugin and I want to update the timer.
I can start the countdown timer at 5000 milliseconds left like this:
$('#CountdownTimer').countdown({ remaining : 5000});
But when I try to update it with this call, I guess I initialize it again or something because the timer doesn’t update like I assumed
$('#CountdownTimer').countdown('update', 2000);
It basically speeds up the countdown timer and if I run this again, it speeds it even more… But what I want to do is reset it to 2000 milliseconds
Any ideas?
Haven’t used this function before, but it looks like this should work:
Just call it before reinitializing the countdown.
EDIT
In the library, change the line:
to read