comment consoler.log formdata
// Display the values
for (var value of formData.values()) {
console.log(value);
}
__goldenFrag__
// Display the values
for (var value of formData.values()) {
console.log(value);
}
// Display the key/value pairs
for (var pair of formData.entries()) {
console.log(pair[0]+ ', ' + pair[1]);
}
var formData = new FormData();
formData.append('key_one', 'First value');
formData.append('key_two', 'Second value');
formData.append('key_three', 'Thrid value');
// Log the key/value pairs
for (var pair of formData.entries()) {
console.log(pair[0]+ ' - ' + pair[1]);
}