I have a form. I am using validation and after that I submit a form..
var flag=$("#form1").validate();
The above code returns an object. I want to check that if the above code is validate, then submit a form using jquery ajax. How I can do that?
Here is my fiddle: http://jsfiddle.net/anish/Q9qes/9/
Thanx
The jQuery validate function allows you to define a submit handler – that’s where you’d fire off the AJAX. You should be passing validate() an object with your specifics. See http://docs.jquery.com/Plugins/Validation for documentation. Quick example…