title: Reset setTimeout every button click?
body: <p>Here is my Code:</p>
  
  <pre><code>var sec = 10; 
  var timer = setInterval(function() {    
      $('#timer span').text(sec--); 
  }, 1000);
  </code></pre>
  
  <p>It sets a <code>setTimeout</code> for 10 seconds. I want to have a reset button that, clicked, calls <code>setTimeout</code> again with a 10 seconds delay.</p>