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 button'));
Also a bit simpler with a single return.
Jörn
Thank you very much Jörn, I've read only the first example on this page
http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage.
Bye :-)
--
gianiaz.net - web solutions
via piedo, 58 - 23020 tresivio (so) - italy
+39 347 7196482