Trying to create an input field for file uploads .. I want when the user selects a file , the file input field gets duplicated with a new empty one
what I used was something like this
<form>
<input type='file' class='addImage' />
</form>
$(function(){
$('.addImage').change(function(){
$("<input type='file' class='addImage' />").appendTo('form');
});
});
See it live here http://jsfiddle.net/R5QSy/1/
It works and display only another single file input duplicate .. if I select a file from the new generated input, no more duplication occurs ! how can I make the duplication process unlimited ? thanks