CheckBox visibility Function

i want to display a text box only when a check box is been clicked. what can i do to achieve that?

  Discussion posts and replies are publicly visible