When i give input (1) then its successfully append text. But when i erase then input value and again give input(2) then its increasing with previous value(1+2=3). Where loop count previous and present value 

[![first i gave 1 then append 1text then i again give 1 then it append two text. Where loop count previous and present value](https://i.stack.imgur.com/yZl94.png)](https://i.stack.imgur.com/yZl94.png)

```
   $(document).ready(function(){
    var i=0;
    $("#flatcount").blur(function() {
            var floor = (this).value;
                for(i=1;i<=floor;i++) {
                    $('#row').append('<p>This is appended text</p><br>');
                }
    });
});

```