Opened 15 years ago
Closed 15 years ago
#2633 closed bug (invalid)
JQuery Validator function bug
Reported by: | xfactor973 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.4 |
Component: | plugin | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
I created a function that is added to the validator. The function is:
$.validator.addMethod("greaterThan",function(value,element,param){ min = jQuery(param).val(); max = value; confirm('min: ' + min); confirm('max: ' + max); confirm(min < max); return min < max; },"Please make sure the maximum price is greater than the minimum price");
The values are being pulled from a select list. When the min is equal to 99999 and the max is 125000 it returns true that the min is greater than the max. Any idea why this is happening? For all other values it works as expected.
Attachments (1)
Change History (3)
Changed 15 years ago by
Attachment: | example.html added |
---|
comment:1 Changed 15 years ago by
Component: | core → plugin |
---|---|
Description: | modified (diff) |
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Can't reproduce that. Also, this isn't a problem with the validation plugin.
Note: See
TracTickets for help on using
tickets.
Quick example