How to stop my javascript countdown?
<p>How can I stop my javascript function when countdown = 0?</p>

<p>JS:</p>

<pre><code>var settimmer = 0;
$(function(){
  window.setInterval(function() {
      var timeCounter = $("b[id=show-time]").html();
      var updateTime = eval(timeCounter)- eval(1);
      $("b[id=show-time]").html(updateTime);
    }, 1000);
});
</code></pre>

<p>HTML:</p>

<pre><code>&lt;b id="show-time"&gt;20&lt;/b&gt;
</code></pre>
