Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

max/min comparisons


Project:Validation
Version:1.2.1
Component:Code
Category:bug report
Priority:normal
Assigned:Jörn Zaefferer
Status:active (needs more info)
Description

The max and min rules fail when comparing numbers that have commas in them, though your default validation allows numbers with commas. E.g. If I have a rule on a text input with max:9999, validation will fail if I pass in 1,000. Maybe add a .replace(/,/g,"") before the comparison?

Comments

#1

This is not trivial to fix due to the localization. 1,000 and 1.000 mean the same in different locales. Not sure yet how to fix this properly.