[link](http://fiddle.jshell.net/h70qz8bs/)

i am facing problem with for loop in jQuery 

i want to show value one by one 

1 then 2 then 3 upto 50

but it showing 1 to 50 at the same time

html

```
<div><span></span></div>

```

js

```
var i=0;

for(i=0;i<=50;i++)
{
    $("div").hide().append("<span>" + i + "</span>" + "\n").fadeIn(500);

}

```