Side navigation
#2633 closed bug (invalid)
Opened April 01, 2008 06:25PM UTC
Closed May 25, 2008 10:50AM UTC
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
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 (2)
Changed April 02, 2008 02:41AM UTC by comment:1
component: | core → plugin |
---|---|
description: | 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. → 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. |
Changed May 25, 2008 10:50AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
Can't reproduce that. Also, this isn't a problem with the validation plugin.