07/03/2017 12:01pm

PHP | Problem -


    $('#ContactsForm').on('submit', function () {


if ($('#ContactsForm').valid()) {
var url = $(this).attr('action');

$.ajax({
type: "POST",
url: url,
data: $("#ContactsForm").serialize(), // serializes the form's elements.
success: function (data) {
$('#service-form').hide();
$('.form-success').addClass('active');
}
});
}

return false;
});