Enable/Disable input boxes with checkbox



Is there any way to enable an input box only if a checkbox selection is true and then disable it again if the selection becomes false?

On a similar note, can I enable/disable various input boxes based on a radio selection? For example: I have 3 inputs and 3 radio buttons. Based on which radio selection the user chooses I want to enable 1 of the inputs and have the other 2 disabled.

ThanX for the Help!

Yes, this would require JavaScript.

However, keep in mind that you should still always do validation on the server side because disabling an input field using JavaScript/HTML does not preven clever users from utilizing them anyway.