Back to Mal's forms page
<<< Clicking on this logo will return you to my Mal's Forms home page.

View the page source!


We have different products selected from the dropdown list using productpr, we restrict the number that can be added to the cart by using a script in the form itself.

We use the onsubmit feature, and also:
if(this.qty.value>10 && this.productpr.value=='Small:10'){alert('Maximum of 10 please');return false;}
The form checks if the above product in the qty box is more than 10, if it is, a popup window is shown to the viewer.

With this example, small is a maximum of 10, medium is 20 and large is a maximum of 30.