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
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
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
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
4 matches
Mail list logo