Enable and disable of text box through a checkboxWe may need to enable or disable a text box based on the input of the user by using disabled property of the element. For example we have some choices for the visitor and one of the options is Others. Once the visitor select the others options then ( only ) one text box will be enabled to allow the visitor to fill the details.
We have used the body onload command to keep the text area disabled while the page is loading. The full code is here.
More on CheckBox & PHP
Checkbox: Using checkbox with PHP Scripts
Validation: Checking the user input of a checkbox and showing message
Checkbox Array: Handling a group of checkbox by array
Disable checkbox: Disable and enable checkbox by clicking button
Disable Text box : Disable a textbox by a checkbox
Limit Checkbox : Limiting the number of checkbox can be checked by user
Check All : Checking or unchecking a group of checkbox by button or at single point