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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -