Resetting countdown in javascript
<p>I want after user typing every time in input run resetting countdown, i add <code>clearTimeout</code> but it don't work. What do i do? (Please help me in my code, i don't want new code.)</p>

<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/qySNq/" rel="nofollow">http://jsfiddle.net/qySNq/</a></p>

<p>Html:</p>

<pre><code>&lt;input id="MizMah"&gt;
&lt;div id="Seconds" style="font-size: 80px;"&gt;5&lt;/div&gt;​
</code></pre>

<p><br>
Js code:</p>

<pre><code>$('#MizMah').live('keyup', function () {
    function render(n) {
        var digits = [],
            r;
        do {
            r = n % 10;
            n = (n - r) / 10;
            digits.unshift([r].join(''));
        } while (n &gt; 0);
        $('#Seconds').html(digits.join(''));
    }

    (function timer(current) {
        render(current);
        if (current &gt; 0) {
            myTimeout = setTimeout(function () {
                timer(current - 1);
            }, 1100);
            clearTimeout(myTimeout);
        }
    }(5));
})​
</code></pre>
