vendredi 20 mars 2020

How to enable a checkbox in HTML when clicking on a different elements?

I have a collapsible slider with a checkbox and a label:

<input id="collapsible" class="toggle" type="checkbox">

<label for="collapsible" class="lbl-toggle">Impressum</label>

When I click on the label, I can toggle between enable and disable, but I have some elements above the document and I want them to only enable the checkbox when I click on them.




Aucun commentaire:

Enregistrer un commentaire