I would like to send my form to the server through jQuery's Ajax method. I have text boxes, text areas, select boxes, checkboxes, radio buttons and most importantly, files in my form.
What I was using for a form that did not have files in it is this:
$('form').serialize();
However now if I have a file field in my form I can't seem to do it. What the best practice (common practice) to send over a big list of form elements including files to the backend server with jQuery - without having to add each element manually to the FormData()
?