set interval() not showing number one by one
<p>Hello friend i tried to show number 1 to 4 one bye one with loop my code is </p>

<pre><code>&lt;script&gt;
$(document).ready(function(){

        setInterval(function() {

        var i = 1;
        for(i=0; i&lt;=5; i++)
        {


                var dis = $('#fade');

                dis.html(i);

                i++;



            }       

    }, 2000);
    })

&lt;/script&gt;
</code></pre>

<p>but its showing result number and stop working plz help me 
Thanks in advance</p>
