Commit 5d94ff1
Changed files (1)
js/trax_input.js
@@ -4,14 +4,19 @@ $(document).ready( function() {
$('#carForm').validate({
submitHandler: function (form) {
- $(form).ajaxSubmit(
- url:"input_process.php",
- type: "post",
- data: $(form).serialize();
- );
+ $.ajax({
+ url: form.action,
+ type: form.method,
+ data: $(form).serialize(),
+ success: function (response) {
+ $('#submitAction').text(response);
+ }
+ });
}
});
+
+
/*
var request;
$('#carForm').submit(function(event){