Skip to content

Tag: jquery

How do I send files(images) in an array in PHP via ajax?

Mistake https://i.stack.imgur.com/mtsAP.png However, if you enter just: It shows everything correctly https://i.stack.imgur.com/kNptA.png PHP Answer From the console output in the second image it appears that fileList is an array of File objects. As such you should append them to a FormData object and set tha…

How to combine a input and a hidden value in a form?

I would like to know if there is a way to add a (hidden) value to a input value in a form. For example, I would like to have a number input like so : <input type=”number” name=’questionA’ hidden_added_to_the_input_value=”+test”> (the code doesn’t work), the user…

Refresh DataTable without reloading page

I am trying to reload data tables that have been inserted into tabs. Please refer to question: AJAX Update DataTable after On Success A PHP class userX.php has 3 data tables with client-side implementations. I am able to change a row of the first table using a button, once it is done the record will go to tab…