Hi,
Can anyone tell me the most effective way to validate the form input from one field under the following criteria.
The data inputted must be in the range 00-24. ie, I do not want anyone to input 9 it must be 09.
Obviously I could write a large set of if statements to check input, but is there a more effective way to do this?
I have found info on RegExp's but no clear example using numbers like this. Does anyone have a link to a good example of RegExp statement that checks numbers?
Thanks.
Can anyone tell me the most effective way to validate the form input from one field under the following criteria.
The data inputted must be in the range 00-24. ie, I do not want anyone to input 9 it must be 09.
Obviously I could write a large set of if statements to check input, but is there a more effective way to do this?
I have found info on RegExp's but no clear example using numbers like this. Does anyone have a link to a good example of RegExp statement that checks numbers?
Thanks.