Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Accessing FormData Values

const formData = new FormData();
formData.append('key1', 'value1');
formData.append('key2', 'value2');

// Display the values
for (const value of formData.values()) {
  console.log(value);
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Accessing #FormData #Values
ADD COMMENT
Topic
Name
6+2 =