Here Mudassar Ahmed Khan has explained with an example, how to implement OnClick event of HTML CheckBox using JavaScript.
For illustration purposes, when the CheckBox is clicked based on whether it is checked (selected) or unchecked (unselected), a JavaScript function will be called within which the HTML DIV with TextBox will be shown or hidden.
↧