Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I stop clients from placing negative quantities on a form

Status
Not open for further replies.
Joined
Jul 13, 2001
Messages
180
Location
US
How do I stop them from entering neg quantities (-2..etc) so that the cost doesn't become a negative price?


Unfortunately, The help I received from the Javascript forum did not help. Here's the thread thread216-229562.

Scoured the web for answers, but to no avail. I have a sample of the very chock full code ( and forgive , a bit amateur) with the thread above, where I would hope to add the stop of using negative quantities.

Any help would be so greatly appreciated.
 
Validate the form. Making sure the values are number between 0 & .....whatever is a reasonable top price Live long and make your kids suffer..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top