Get complete form data using javascript



var form = document.getElementById('form-name'); var data = new FormData(form); for (var [key, value] of data) { console.log(key, value) }

Post a Comment

0 Comments