Advertisement

07.17.2008 at 07:01AM PDT, ID: 23573214
[x]
Attachment Details

ensure that integer value entered in text box is not greater than specific number

Asked by samic400 in JavaScript

I will have an input box where I only accept integer values. I need to ensure that, based on a field value from my DB, that I need to pass to my function, that this value isn't exceeded.

For example, let's say that my user cannot enter anything larger than 10. How could I write a function, using js that will allow me to pass the 10 in somehow and ensure that they don't enter anything larger than this? This value will change based on the data in DB, so it won't always be 10. It could be anything.

Thanks.

Start Free Trial
[+][-]07.17.2008 at 07:16AM PDT, ID: 22025688

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628