.serialize form to an object javascript code example
Example: js form serialize
var form = document.querySelector('form');
var data = new FormData(form);
var form = document.querySelector('form');
var data = new FormData(form);