setTimeout Problem
<p>i got a problem with <a href="https://developer.mozilla.org/en/window.setTimeout" rel="nofollow">setTimeout</a>.. i dont know why this will not work..</p>

<pre><code>$(document).ready(function(){
var counterNum = 0;

function tick()
{        
    addText(counterNum);
    setTimeout('tick()',1000);
    counterNum++;
}

function addText(strNum)
{
 $("div.counter").empty();
 $("div.counter").append(strNum);           
}
});​
</code></pre>

<p>you can check it here for the live preview <a href="http://jsfiddle.net/BNF5J/" rel="nofollow">LINK</a></p>

<p>and also sir, what is the difference between</p>

<pre><code>setTimeout('tick()',1000);
</code></pre>

<p>and </p>

<pre><code>setTimeout(tick(),1000);
</code></pre>

<p>?</p>
