Skip to content Skip to sidebar Skip to footer

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:

returnthis.optional(element) || /^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);

and replace with this:

returnthis.optional(element) || !isNaN(Globalize.parseFloat(value));

Post a Comment for "Global Settings For Jquery Valdiator Method"