Correction:
  validator.triggerHandler('submit');
change to
  $('#formid').triggerHandler('submit');

M

On Nov 7, 3:45 pm, mbraybrook <[EMAIL PROTECTED]> wrote:
> Try using the triggerhandler function:
> var validator = $("#sourcing").validate();
> $("#submit").click(function() {
>         validator.triggerHandler('submit');
>
> });
>
> Not tested...
>
> HTH
> M
>
> On Nov 7, 3:41 pm, Justin Kozuch <[EMAIL PROTECTED]> wrote:
>
> > Hi There,
>
> > I've been using the validation plug in for a while now and I love it,
> > but I am stuck on something.
>
> > I am trying to validate a form using:
>
> > <input type="button" id="submit" name="submit" value="Submit" />
> > instead of the usual:
>
> > <input type="submit" id="submit" name="submit" value="Submit" />
>
> > I tried using:
>
> > var validator = $("#sourcing").validate();
> > $("#submit").click(function() {
> >         validator.form();
>
> > });
>
> > to do the validation but that doesn't do anything at all. Has anyone
> > been able to figure this out?
>
> > Thanks,
>
> > Justin

Reply via email to