Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

How to loop the jquery formData key object in jqueyr

for ([key, value] of form_data.entries()) {
  let val;
  if (value instanceof File) {
    val = value.name;
  } else {
    val = value;
  }
  console.log(key + ': ' + val);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #loop #jquery #formData #key #object #jqueyr
ADD COMMENT
Topic
Name
1+3 =