Checkbox

I have 4 dynamic text boxes which duplicates the text from a main input text box. How do I write a code to make visible only the dynamic text box I want when clicked it’s check box.

What is the CODE to make each “DYNAMIC TEXTBOX” visible when clicked on it’s checkbox?