Assuming that you are controlling the submission of each form so that it is done exclusively by ajax, you only have to go through all the forms and send them. something like this:
$('form').each(function(elemento){
$(elemento).submit();
});
In the method that sends the form you can check to see if the form was sent correctly and if you got a correct answer.
If you want to control and send, you can do it like this:
$('form').each(function(elemento){
$(elemento).submit(function(){
e.preventDefault(); //Detienes el envio normal.
$.ajax({
type: 'POST',
url: 'url/url/url',
data: $(this).serialize(),
success: function (data) {
console.log('Este formulario se envió correctamente');
},
error: function (data) {
console.log('Este formulario obtuvo un error');
},
});
});
});
Add an ID to each form dynamically, so you know which form got error and which was sent correctly.
I do not put the code because I do not know how you generate the forms.
Greetings.