I follow countdown library http://keith-wood.name/countdown.html and use this code to display timer
var def = 2 * 60 * 1000;
var now = new Date();
var timer = new Date(now.getTime() + def);
$('#countdown').countdown({until: timer});
And output is 3minutes but i need output 180 countdown 179, 178, 177.. 0. How to customize it?
Solved with add : format: 'S'
To add in input text : layout:'<input type="text" value="{sn}">'
Thanks Rahul Gupta and jeek online
Here is the working JSFIDDLE JS Code:
var now = new Date();
now.setSeconds(now.getSeconds() + 180);
$('#countdown').countdown({until: now, format: 'S'});