[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
It's my understanding that the validation plug-in listens for a form to be submitted before performing its checks. If this isn't the case then this won't work, but, in your sample code you've used: validator.triggerHandler('submit'); which will need to be changed to: $('#formid').triggerHandler

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread Justin Kozuch
No joy there... Here's my code: // validate signup form on keyup and submit var validator = $("#sourcing").validate(); $("#submit").click(function() { validator.triggerHandler('submit'); rules: { }, // end rules messages: { ... } // end messages

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
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() { >         valida

[jQuery] Re: Triggering Validation using a button instead of submit

2008-11-07 Thread mbraybrook
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