The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript IE javascript not working correctly

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #34975

    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) {
    else {
    }, 1000);
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.