function countDown(count) {
document.getElementById('showtimes').innerHTML = count;
if (count == 0) {
// do job
} else {
count -= 1;
setTimeout(function () {
countDown(count);
}, 1000);
}
}
function countDown() {
var count=$("#hideInput").val();
if (count == 0) {
// do job
} else {
count -= 1;
$("#hideInput").val(count);
setTimeout(function () {
countDown(count);
}, 1000);
}
}