Jörn Zaefferer ha scritto:
The first argument, "value", refers to the actual value-attribute.
You'll probably want to use the third argument, eg. "param":
$.validator.addMethod('hasClass', function(value, element, param) { reurn
$(element).hasClass(param); }, jQuery.format('Please check the b
The first argument, "value", refers to the actual value-attribute. You'll
probably want to use the third argument, eg. "param":
$.validator.addMethod('hasClass', function(value, element, param) {
reurn $(element).hasClass(param); }, jQuery.format('Please check the
button'));
Also a bit simpler
2 matches
Mail list logo