Starting timer without reloading the page



  • We need to make sure that if we're on the list. <select name="closed" It's closed, it started a timer in the button. <button id="countdown"♪ Now, if the page is overloaded, it's working. How do we start without rebooting?

    Code: http://pastebin.com/3RRRFZth



  • The code you've got is very curved, you'd regret people. The answer to your question is simple.

    $('селект').on('change', function (e){
        if(e.currentTarget.value == 1) {
            $('#countdown').show();
        } else {
            $('#countdown').hide();
        }
    });
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2