I have a check box and a text field.
When the page is loaded, the text field is disabled, but then when a user clicks the check box, the text field is enabled.
I used this code from a previous post by cheesebag to do that:
However, I want to be able to add another text field, and have that new one ALSO be enabled when the user checks the check box. Is there an easy way to do this? Thanks.Code:<form name="form"> <input name="enableDisableTask" type="checkbox" onclick="email.disabled=!this.checked"> Email <input name="email" type="text" value="" disabled="disabled"> </form>