Answers for "form serialize object javascript"

0

js form serialize

var form = document.querySelector('form');
var data = new FormData(form);
Posted by: Guest on April-15-2021
0

form serialize object javascript

function objectifyForm(formArray) {//serialize data function

  var returnArray = {};
  for (var i = 0; i < formArray.length; i++){
    returnArray[formArray[i]['name']] = formArray[i]['value'];
  }
  return returnArray;
}
Posted by: Guest on May-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language