Answer the question
In order to leave comments, you need to log in
Is it possible to wrap a block in a label?
Is it possible to wrap a div that contains a checkbox in a label?
so that when you click on the div, the state of the checkbox changes.
Code Example
<label for="option-one">
<div class="order">
<input type="checkbox" id="option-one">
</div>
<p>купить выгодно</p>
</label>
<label for="option-two">
<div class="order">
<input type="checkbox" id="option-two">
</div>
<p>купить выгодно</p>
</label>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question