I have created a custom toggle switch, so when I toogle it to ON, it should display the checkboxes in list item and on turning OFF the toggle, it should hide checkboxes in list item. How can I achieve this?
Toggle switch
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch1" checked>
<label class="custom-control-label" for="customSwitch1"><h>TOGGLE</h>
</label>
</div>
Checkbox
<ul>
<li><input type="checkbox">first</li>
<li><input type="checkbox">second</li>
</ul>