How to hide a section using check box

How to hide a section using check box

Hi i have a secton which contains  around 15 fields.

If the checkbox is ticked by the user i want the section to be visible or else the section to be hidden how can a custom code be written for them.

Any reference would be appreciatable!

Please help me with this?