Thanks Leonardo...
I figured it out after digging through several examples. The
documentation for this plugin has a huge gap in it. It shows an
example of how to define a custom validator but no where does it
explain how to use it. The trick being as you mentioned, defining it
in the Rules or you
One thing is your method name and other is your field name. If the name of
your field is company and your method is company so:
rules:{
company:{
company:true
}
}
Maybe is better rename your method to not confuse.
On Thu, Oct 22, 2009 at 13:24, JMan wrote:
>
> Still no go...
Still no go... below is my code. I just want to pop a dialog to ask
the user if they are sure they want to leave the company name blank.
The field is not required. I thought it would be easier than this? I
can't get teh addMethod to work or fire at all on validation.
//validates the form
U need set the rules for your validation:
frmSubmittal.validate({
debug: false,
focusCleanup: false,
focusInvalid: false,
onfocusout: false,
onkeyup: false,
errorPlacement: function(error, element) {
error.prependTo( element.parents("div.ctrlHolder"));
},
er
4 matches
Mail list logo