serialize form js

Код JS
let formData = new FormData();
let formElements = document.formName.querySelectorAll("input, select,textarea");
formElements.forEach((elem)=>{
	formData.append(elem.name, elem.value);
});
Вверх