Show/hidden fields changing checkbox



I’m trying to implement this kind of function on my page:

There are some hidden fields that should be visible once I check the first checkbox. I tried with jquery (if you see the source code there’s a function before the body end tag that should recall the checkbox status and then show or hid the fields specified.

Do you have any idea on this please?