I added a captcha to my form and I want to validate this field.
jQuery.validator.addMethod("matchCaptcha", function(value,element) {
return this.optional(element) || value == '#request.strCaptcha#';
});
#request.strCaptcha#
this part simply returns an alphanumeric char something like 'cZk9ljW'
under the rules, i added:
captcha : { matchCaptcha : true }
The validation does not run and I get no errors from script. What am I doing wrong? thanks