Append a div or input box

$('#add_more').click(function() {

$(this).before($("<div/>", {id: 'filediv',style:''}).fadeIn('slow').append(

$("<input/>", {name: 'file[]', type: 'file', id: 'file',class:"btn btn-warning btn-big"}),        

 $("<br/><br/>")

 ));
});

Leave a Reply

Your email address will not be published. Required fields are marked *