jQuery Validation with Ajax
Posted: Wed Apr 28, 2010 10:14 am
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
but its not working..
PLEASE I NEED HELP!!
Code: Select all
<input type="button" value=" submit " onClick="if( $('#form').valid() == 'true'){ mymethod(); }else{ alert('Finish the Form'); }">
PLEASE I NEED HELP!!