$(document).ready(function(){
$("button").click(function(){
$("#inputtext").append("<input type='text' name='photo_1'/><br />");
})
})
i wanna photo_1 to auto increment as photo_1,photo_2,photo_3,…
Some thing like this.
Demo