Parent and child checkbox

How do I get a child checkbox to appear if the parent checkbox is checked?