I want to set the valid number from -1 to infinity in the jquery validate rules, but how should i specify the number range. In from i specified “-1” and its working but in to what should be the value.
rules: {
"numberOfUsers": {
"required": true,
"number":true,
"range":[-1,1000]
}
—
Thanks
Infinity is displayed when a number exceeds the upper limit of the floating point numbers, which is 1.7976931348623157E+10308.
rewrite your rules like this
or simply use this