Is there a simple, one-line way to get the data of a form as it would be if it was to be submitted in the classic HTML-only way?
For example:
var formData = new FormData($('#form-id')); params = $('#form-id').serializeArray(); $.each(params, function(i, val) { formData.append(val.name, val.value); });