formData.append("username", "Chris");
formData.append("username", "Bob");FormData: getAll() method / notebook
FormData: getAll() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
formData.getAll("username"); // Returns ["Chris", "Bob"]