Hi! I’m having a strange problem with my javascript that only occours in Internet explorer. The goal I’m trying to achive is that once an element is clicked a countdown will start, but it should only start once, which it does in all browsers except for IE, where every time the element is clicked the countdown will reappear on top of the existing one causing confusion. I greatly apreciate any help, thanks!
$("div").click (function counter() {
$("div").unbind('click', counter);
var count = 60;
countdown = setInterval(function(){
$(".countdown p").html(count);
if (count == 0) {
$(".while-ticking").fadeOut(1000);
$(".countdown-finished").fadeIn(1000);
}
else {
count--;
}
}, 1000);
});