[jQuery] ajax submit and jquery validation

[jQuery] ajax submit and jquery validation


Hi :D
I use Jquery validation from http://bassistance.de/jquery-plugins/jquery-plugin-validation/
and I got a question ...
I have form that I need to submit using ajax post() function.it works
well ... and now I tried to add data validation using jquery
validation .. it works well.
my form is like this ...
<form method='post' name='myform' id='myform'>
<input type='text' id='mytext' name='mytext' value=''/>
<input type='text' id='mytext2' name='mytext2' value=''/>
<input type='text' id='mytext3' name='mytext3' value=''/>
<input type='button' value='send the data' onclick='postAjax();'/>
</form>
What i need to know is ... if the button "send the data" clicked .. i
would like to have validation first and if the validation was
failed .. it wont call postAjax() function.
I dont know how to do this using JQuery Validation.
Please help me ...
Thx you
best regardas...
adwin