setTimeout stack over flow
<blockquote>
  <p>
      
       setTimeout stack over flow..
          
          
              $(document).ready(function(){
                  counterFN();</p>

<pre><code>            var theCounter = 1;
            function counterFN()
            {
                $(".searchInput").val(theCounter);
                theCounter++;
                setTimeout(counterFN(),1000);    
            }

        });        
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;input type="text" class="searchInput" /&gt;
&lt;/body&gt; &lt;/html&gt;
</code></pre>
</blockquote>
