I have a jQuery count down timer which have to count from 30:00 minutes to 00:00. But showing and stucked at 29:59 Here is my code:
var now = new Date();
var newDateObj = new Date(now.getTime() + 30 * 60 * 1000)
$("#countdowntimer").countdown({
date: newDateObj.toGMTString(), //Counting TO a date
htmlTemplate: "%{m}:%{s}",
onComplete: function (event) {
$(this).html("Completed");
},
leadingZero: true
});
PS: I am using jquery.jcountdown1.3.js
plug-in
What's issue here?
I've created a jsbin for you using keith-wood countdown. It can do what you want it to do, but the api is slightly different.
Let me know if you have any more queries