get all values from form javascript code example
Example: js get all data in form
document.addEventListener('submit', function (event) {
let fd = new FormData(event.target);
})
document.addEventListener('submit', function (event) {
let fd = new FormData(event.target);
})