Data formulir
let fd = new FormData();
fd.append("email", data.email);
Blue Baboon
let fd = new FormData();
fd.append("email", data.email);
const formData = {}
Array.from(e.currentTarget.elements).map(item=>{
if (!item.name) return null;
formData[item.name] = item.value
})
console.log(formData)
$('form').serialize() //this produces: "foo=1&bar=xxx&this=hi"