Skip to content Skip to sidebar Skip to footer

Submitting A Form With Ajax After Jquery Validation Is Successfull

Ok so I have a form that I am validating with jQuery Validation and I am trying to now submit it with AJAX. With the code below, once the form is valid and you click on submit the

Solution 1:

Try to use :

submitHandler: function(form) {
    $.ajax({
        url: form_submit/inquiry_form/inquiry_form.php,
        type: "POST",
        data: $(form).serialize(),
        success: function(response) {
            $('#inquiryFormHolder').html("Your form was submitted!");
        }            
    });
    $form.submit();
}

Post a Comment for "Submitting A Form With Ajax After Jquery Validation Is Successfull"