Can anyone please tell me how to disable a textbox, if a checkbox is checked, and enable textbox if the checkbox is not checked?
Put this in the checkbox:
onclick="document.getElementById('IdOfTheTextbox').disabled=this.checked;"
1.4m articles
1.4m replys
5 comments
57.0k users