var n = 60;
setTimeout(countDown, 1000);
function countDown(){
n--;
if (n > 0){
setTimeout(countDown, 1000);
}
//alert(n);
document.getElementById("div_timer").innerHTML = n;
}
this is my code for count down timer. when clicking the submit button, i need to stop the counter running and should return the counter value. please help...