Am working with a count down timer and I want to stop it when is 0, Here's my code
function countdown() {
// your code goes here
var count = $('.c').attr('id');
var timerId = setInterval(function () {
count--;
$('.c').text(count)
if (count == 0) {
$("#page").load("page.php");
$('#beforeloading').html('');
count = 60;
}
}, 1000);
}