Alert if minimum quantity not entered
I have an e-commerce site that has some products that have a minimum quantity. At the moment I have multiple items on a page and each product has a simple quantity input field and 'Add to cart' button. Problem is if I set the initial value of the input to 5 where 5 is the minimum and press add to cart it would add every product on that page with the initial value set. So, I want to simply show an alert (stating minimum quantity of 5) if a user inputs 4 or less.
What is the easiest way to do this? For reference see URL below...
The good news is that in the future when browser support for HTML 5 is more robust, you'll be able to employ a pure-HTML solution to this issue. The bad news is that few of the browser vendors seems to be in any hurry to expand their support in this area, so it could be a while.
Thanks for the reply. I'll check out the validation via JS you spoke about. Bring on the HTML support I say!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)