laravel - jQuery .append() not working with jQuery File Upload -


i'm using jquery file upload , on success i'm trying append hidden input field form not working, element not being appended.

jupload.fileupload({     // uncomment following send cross-domain cookies:     //xhrfields: {withcredentials: true},     url: '/content/upload',     done: function (e, data) {             $("#fileupload").append('<input type="hidden" name="uploaded_files[]">');          } }); 

html:

<form action="create-submit" id="fileupload" method="post" enctype="multipart/form-data"> ... </form> 


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -