southbeach
Programmer
I am using JS to validate and make sure users do not enter values greater than expected or allowed.
I am having problem with this. Where the maximum allowed is 180, if one enter a number like 25, my existing logic says that 25 is greater than 180.
I figure it is doing an alpha comparison and of course, 2 is greater than 1. I need this to be numeric.
How do I solve this?
Thanks!
I am having problem with this. Where the maximum allowed is 180, if one enter a number like 25, my existing logic says that 25 is greater than 180.
I figure it is doing an alpha comparison and of course, 2 is greater than 1. I need this to be numeric.
How do I solve this?
Thanks!