Commit 5d94ff1

bryfry <bryon.fryer@gmail.com>
2013-09-30 22:54:13
testing jq validate
1 parent 304a4eb
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){