Global Settings For JQuery Valdiator Method
I am sorry for my simple question but I can't get it work . How I can make this jquery validator method to work globally . I have this code in my layout: jQuery.validator.methods.
Solution 1:
You could override the jQuery.validate.js script, but it will add permanent dependency to globalize.js
find this:
return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);
and replace with this:
return this.optional(element) || !isNaN(Globalize.parseFloat(value));
Post a Comment for "Global Settings For JQuery Valdiator Method"