[jQuery] [validate] Allow empty field
Hi all,
I'm getting an issue with the jquery.validate plugin.
When I add a validation rule to an input field like this :
$.validator.addMethod("custom_alphanumeric",
$.validator.methods.alphanumeric, "Please provide an alphanumeric
value");
$("#ValidationSampleObjectAlphanumeric").rules ("add",
{'custom_alphanumeric':true});
The validator check the field correctly ! but when I delete the
content of the field, the message still appears.
I would like to allow the user to either let empty the field either
fill with an alphanumeric value.
I need to add the rule by this way, because the rule are automaticly
generated.
If someone got an idea, it will be appreciate :)
thx