Check / uncheck the box without using JavaScript / jQuery
4 answers
If you need to check / uncheck an input <label>
, check the id
input and use the label for
attribute to connect them.
Another option is to use the label as the container for the input:
+7
source to share
shortcut and input are for collaboration :)
see: https://www.w3.org/wiki/HTML/Elements/label
A signature can be associated with a specific form control:
Usage for attribute [Example A]
By placing the form control inside the label element itself. [Example B]
+1
source to share