Validation

Validation

Hi,

I have 2 forms with 1 button, the code below works, but I need help integrating/implementing the JQuery Validation Engine ( https://github.com/posabsolute/jQuery-Validation-Engine). I was hoping that the script below will not fire up yet if fields are not populated or if email is invalid. something like that. Cause what happens is that the form will be submitted if you click on submit even without data.
  1.   $(document).ready(function () { 
  2.     $("#submitButton").click(function () { 
  3.         $.post($("#form1").attr("action"), $("#form1").serialize(), function () { 
  4.             alert('Form 1 submitted'); 
  5.     }); 
  6.         $.post($("#form2").attr("action"), $("#form1").serialize(), function () { 
  7.             alert('Form 2 submitted'); 
  8.         }); 
  9.     }); 
  10. });  
Thanks! :)