$('#form').submit(function(e){
e.preventDefault();
$.ajax({
//ajax stuff
success: functtion(data){
//do stuff with data, then submit form
$('#form').submit(); // <-- this wont submit the form
}
});
});
How can I submit this form after my ajax call is complete?
you have a typo here:
functtionthen try in this way, creating a reference to the form itself, using native
submit()method available forformelement