** TypeError: Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement' ** In my browser, there is a issue as above mentioned, I need to get data using formdData
methods: {
getValue(e) {
e.preventDefault();
const form = e.target;
const formData = new FormData(form);
for (const [inputName, value] of formData) {
console.log({ inputName, value });
}
}
}