PDA

View Full Version : deactivate form fields in html?



eric_darling
01-07-2004, 08:48 AM
Can anyone tell me what the best way is to have specific fields in an html form deactivate conditionally based on selections made in another field?

For instance, if someone selects Paypal as their form of payment, the credit card number and expiration date fields are deactivated so users cannot input data into them.

Corey
01-07-2004, 11:21 AM
Javascript is by far the best way to handle conditional forms, i.e. http://www.codetoad.com/javascript/navigation/conditional_menus.asp

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)