Simple jQuery Count Up timer help please
<p>Trying to make a simple count up timer in jquery... this sort of works but is adding the numbers to the end of '0000' and I want it to go <code>'0001' '0002' '0003'</code> etc...<br>  This is all happening in the jqury onReady scope.</p>

<pre><code>var i = '0000'
var timer = function doSomething ( )
{
    i = i+= 1
    $('.counter').text(i);
    console.log(i);

}
setInterval (timer, 1000 );
</code></pre>
