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
$(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>');
}
});
});
