Skip to content
Advertisement

jquery file upload check box form

I am a beginner in JS and I decided to use this library: https://blueimp.github.io/jQuery-File-Upload/

My issue is the following :

I have to send (in FormData, thus additional form) the value of 2 checkboxes. The concern is that the checkboxes are false when the page loads and the client changes its value, and in my code, the formdata takes the value of both checkboxes but without updating them during changes (checked / unchecked).

JavaScript
JavaScript

So, how can I make the “format” retrieve the current values?

Advertisement

Answer

Well, I’ve win with this:

JavaScript

the .bind (‘fileuploadsubmit’ allows me to reconfigure the fileupload, when I click on an “upload” button it modifies the configuration by directly sending the current value of the checkboxes.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement