I found this script where one checkbox (once checked) shows the corresponding div. When Checkbox is Checked Expand Div
But I have multiple checkboxes, which shows its corresponding div once checked.
I tried to add the following to the html file but that didn't work:
<div style="clear: both;"></div>
<input type="checkbox" name="mycheckbox" id="mycheckbox" value="0" />
<div id="mycheckboxdiv" style="display:none">
This content should appear when the checkbox is checked
</div>