Perfect, I think there is a small type there, should be

var form = $("#myform");
form.validate();
$("#mybutton").click(function() {
  if (form.valid()) {
    // do something
  }

});


But other than that it works perfectly. Thanks so much Jörn

Regards

Raine
On Mar 15, 6:40 pm, Jörn Zaefferer <joern.zaeffe...@googlemail.com>
wrote:
> Try this:
>
> var form = $("#myform").
> form.validate();
> $("#mybutton").click(function() {
>   if (form.valid()) {
>     // do something
>   }
>
> });
>
> Jörn
>
> On Mon, Mar 16, 2009 at 12:02 AM, yellow1912 <yellow1...@gmail.com> wrote:
>
> > I'm using this fantastic validation module:
> >http://bassistance.de/jquery-plugins/jquery-plugin-validation/and I
> > wonder if there is a way to force validation before form submission.
>
> > I have a button, which my users have to click first, and if the
> > validation goes through then I will use window:print(); instead of
> > submitting the form
>
> > Regards
>
> > Raine

Reply via email to