Setting up inactive form elementsYou can give viewers access to form elements only in specific situations by building HTML forms with dimmed elements that can be conditionally activated by a script. On the HTML side, you add a "disabled" attribute to each form element that should be unavailable when a viewer loads the form. The form's CGI script monitors elements of another form for a particular event and activates the item when the event occurs. For example, you can keep a form's Submit button inactive until viewers enter some required data. Legends, labels, text fields, password fields, text areas, Submit buttons, Reset buttons, check boxes, and radio buttons support inactive status. To disable an element:
|