jquery - Customize Countdown JS [Close] -
i follow countdown library http://keith-wood.name/countdown.html , use code display timer
var def = 2 * 60 * 1000; var = new date(); var timer = new date(now.gettime() + def); $('#countdown').countdown({until: timer});
and output 3minutes need output 180 countdown 179, 178, 177.. 0. how customize it?
solved add : format: 's'
to add in input text : layout:'<input type="text" value="{sn}">'
thanks rahul gupta , jeek online
here working jsfiddle js code:
var = new date(); now.setseconds(now.getseconds() + 180); $('#countdown').countdown({until: now, format: 's'});
Comments
Post a Comment