js pass form data values code example
Example 1: console log formdata
// Display the key/value pairs
for (var pair of formData.entries()) {
console.log(pair[0]+ ', ' + pair[1]);
}
Example 2: javascript form data
var formData = new FormData();
fromData.append('name','value');