Hi all,

I am using validate (1.5.4) plugin to validate numeric input field
with max:5000.00.  When the numeric value is formatted as "2,999.00",
the max validation failed.  After some investigation, it turns out the
max function compare the value "2,999.00" as string with 5000.00
instead of 2999.00 with 5000.00.  To fix this, I modified the existing
value variable with parseFloat(value.replace(",","") in min:, max:,
and range:.

Note: Only works in countries that use "," as thousand separator.

For Jörn, could this fix be included on your future release?

Thanks.

Reply via email to