Open robertosimoes opened 12 years ago
It's probably way too late to help the original poster but this will destroy and restart the counter, although the recursion will suck up memory pretty quickly:
var opts = {
timerEnd: function fn() { $('#counter1').empty(); $('#counter1').countdown( opts );},
image: 'img/digits.png',
startTime: "3",
stepTime: 1,
}
$('#counter1').countdown( opts );
I'm trying to force the countdown to be destroyed in the beginning of the ajax load in the document.ready and start a new one, but no success. Can you help me?