JS obtenha dados do formulário
const form = document.querySelector('form');
const data = new FormData(form);
Silly Sandpiper
const form = document.querySelector('form');
const data = new FormData(form);
// return data in key value pair
$('#form').serializeArray().reduce(function(obj, item) {
obj[item.name] = item.value;
return obj;
}, {});
var nameValue = document.getElementById("uniqueID").value;