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