I have the following code:
HTML
<label>File Upload: </label>
<input type="file" name="file[]" />
jQuery
$('#property_enquiry input[type=file]').change(function() {
$('<input type="file" name="file[]">').insertAfter("input[type=file]");
});
What I want to happen is once the first file is added a new input is added underneath the current one. The above code works when adding the first file to create a second input, however when adding a second file a third input isn't created.