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?
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?