I forgot ... i am not using input type='submit' because I use ajax .... i serialize the data first before submitting ...
may be I should made clear ... I want to validate .. and I want to know .. if it is pass the validation (using JQUERY Validation) then I can do postAjax() ... but I dont know how to use jquery validation to return true/false while doing form validation. Thx On Apr 30, 12:05 am, Adwin Wijaya <[EMAIL PROTECTED]> wrote: > Hi :D > > I use Jquery validation > fromhttp://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