[jQuery] [validate] dynamic message
Hello group!
Very happy to have deployed validation plugin ( I mostly need to check
validity of EAN/UPC numbers for barcode generation). You can see it in
action here: http://www.barcoderobot.com/ean-13.html
The question I am struggling with though is howto return a
'dynamically generated' message. Say, '13 digits are required, you
have XX'?
$.validator.addMethod("dynamic_check", function(value) {
if(_value is incorrect_){
return False;}
}, 'dynamic message goes here');