Here we show how you can show and hide TextBox when CheckBox is checked and unchecked using JavaScript.
Here the CheckBox has been assigned a JavaScript OnClick event handler. When the CheckBox is clicked, the showHide() JavaScript function is executed. Inside this function, based on whether CheckBox is checked or unchecked , the TextBox is show or hide.
Below is example code.
inflay.com | Show Hide TextBox When CheckBox Is Checked Unchecked Using JavaScript
Show Hide TextBox When CheckBox Is Checked Unchecked Using JavaScript