title: I am having issues with resetting a single instance of a jquery countdown from an instance of a button of class reset
body: <p>i am using <a href="http://hilios.github.io/jQuery.countdown/" rel="nofollow noreferrer">http://hilios.github.io/jQuery.countdown/</a>
  in a bidding system project.
  i am working with django for backend.
  i have many countdown instances 
  i have successfully gotten the countdown to work with some basic javascript countdown. but the problem i have is resetting each countdown to 15 seconds uniquely based on the bid button under it.</p>
  
  <pre><code>&lt;div class="time-counter"&gt;
    &lt;div data-countdown="2018/08/18 12:34:56"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="cart-btn"&gt;
    &lt;a class="reset"&gt;Bid Now&lt;/a&gt;
  &lt;/div&gt;
  
  my js code below
  $('[data-countdown]').each(function() {
      var finalDate = $(this).data('countdown');
      finalDate = new Date(finalDate).getTime();
      console.log(finalDate);
      var $this = $(this);
      var x = setInterval(function() {
          var now = new Date().getTime();
          var distance = finalDate - now;
          var days = Math.floor(distance / (1000 * 60 * 60 * 24));
          var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / 
          (1000 * 60 * 60));
          var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 
  * 60));
          var seconds = Math.floor((distance % (1000 * 60)) / 1000);
  
          $this.html(`&lt;span class="cdown hour"&gt;${hours}&lt;/span&gt;&lt;/span&gt;
  &lt;span class="cdown minutes"&gt;&lt;span class="time-count"&gt;${minutes}&lt;/span&gt;
  &lt;/span&gt; &lt;span class="cdown second"&gt;&lt;span class="time-count"&gt;${seconds}
  &lt;/span&gt;&lt;/span&gt;`);
          if (distance &lt; 0) {
              clearInterval(x);
              document.getElementById("demo").innerHTML = "Sold";
          }
      }, 1000);
  
      $('.reset').each(function () {
          $(this).click( function() {
              finalDate = finalDate + 15000;
              console.log(finalDate)
          })
      })
  
  I appreciate any help i can get.
  </code></pre>