javascript - Ajax POST HTML form with elements array using jQuery
one text
Solution:
In this way you can submit form with serialize data and you many use post or get request for this or any other method.
jQuery("#invite-form").submit(function(e) {
e.preventDefault();
let data = jQuery(this).serialize();
jQuery.ajax({
type: "get",
url: 'invitation.php',
data: data,
cache: false,
success: function(data){
console.log(data);
}
});
});
Source