I set a max range of 110000, but it flags anything that has values of 11345 etc, it works if it matches 110000 etc. Maybe the regex or whatever your using should be:
"^0*(110,?000|((10[0-9]|[1-9][0-9]|[1-9]),?[0-9]{3})|([1-9][0-9]{2}|[1-9][0-9]|[1-9]))$
I'm passing values like 2500.00 or 231.00
They are decimal type and currency in the database.
EDIT:
After some digging on jquery.validate.js it appears that they already provide a max and min attribute and it uses there attribute to validate. However, it seems to fail when the value looks like "42.0000" if using currency or decimal.
If I take away the Quotes around it, then it works. I don't understand why this is happening.
I set a max range of 110000, but it flags anything that has values of 11345 etc, it works if it matches 110000 etc. Maybe the regex or whatever your using should be: "^0*(110,?000|((10[0-9]|[1-9][0-9]|[1-9]),?[0-9]{3})|([1-9][0-9]{2}|[1-9][0-9]|[1-9]))$
I'm passing values like 2500.00 or 231.00
They are decimal type and currency in the database.
EDIT: After some digging on jquery.validate.js it appears that they already provide a max and min attribute and it uses there attribute to validate. However, it seems to fail when the value looks like "42.0000" if using currency or decimal.
If I take away the Quotes around it, then it works. I don't understand why this is happening.
// http://jqueryvalidation.org/max-method/ max: function( value, element, param ) { return this.optional( element ) || value <= param; },