Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

only one of my checkboxes will check if i click on its label

<div>
    <label for="group">
        Select lists
    </label>
</div>
<div>
    <input type="checkbox" name="group" id="group1" value="1" title="Main List" />
    <label for="group1">Main List</label>
    <input type="checkbox" name="group" id="group2" value="2" title="Secondary List" />
    <label for="group2">Secondary List</label>
</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #checkboxes #check #click #label
ADD COMMENT
Topic
Name
3+8 =