jQuery Form Validation: add a method after complete
I have an ajax post request method i need to run AFTER the form has been validated. I was just using a button, but ofcourse that wont work with validation, it needs to be a submit button. How do I get around this? I have been trying todo an inline javascript if statement in my button
[code]
<input type="button" value=" submit " onClick="if( $('#form').valid() == 'true'){ mymethod(); }else{ alert('Finish the Form'); }">
[/code]
but its not working..
PLEASE I NEED HELP!!