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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Verification - To the next level

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Ok, I know that there's a javascript that can check if a field to be sent by form, is filled out, and the mail can NOT be submitted unless a field is filled out. (Can be seen at:

Try pressing the submit button at that site without entering any information. The javascript even verifies if the drop down boxes have been selected (see the AGE field at the site).
But I want to know if there's a script that can toggle the verification on and off. Like if an "american express" credit card is selected in 1 field, i want the "pin number" field to be required as well. and if "mastercard" is selected, i want the "pin number" field to be left blank. These are also drop down boxes. Is this possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top