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