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