Creates a formData object using the form identifier and does the following:
var formDataDetails = new FormData(document.getElementById("form_id")); for (var entry of formDataDetails{ res[entry[0]] = entry[1]; }
Later I do JSON, strict and doing POST.
But I recently found out that the for..of is not yet supported in Internet Explorer. And I believe that using the for..in loop for..in wrong, as it is used to iterate through enumerated objects (most likely using the properties of the object).
How do I iterate through formData for Internet Explorer?
json javascript internet-explorer form-data
Anuj balan
source share