Add an input file type field by a click of a button
Hello, I am using JQuery for the first time i need the dinamacally genarate an input file after a button.
The objective is to make several uploads for files.
soo here is the function:
- $('button.add_input_file').click(function() {
- $(this).after('<input type="file" />');
- });
my button is like this:
- <input type="button" name="btnAdd_upload" value="" class="add_input_file">
Do i need to add more info to the button?