Hi, I am using the time-ticker function by David Walsh. I did manage to return false from within the callback function, whenever I had to create a new instance, and wrote a new instance altogether. But it would be far more clean code if I could somehow update the call back function form within. Please let me know, even if it is something more general. Thanks in advance :)
A:
You can supply whatever callback you like... it is one of the settings - so if you wanted to end the callback, you just need to return out of it.
$('#countdown').countDown({
startNumber: 10,
callBack: function(me) {
$(me).text('All done! This is where you give the reward!').css('color','#090');
alert("You can do anything here");
// Including calling another function
DoSomething();
return false;
}
});
Sohnee
2010-07-06 07:01:54