php - Checkbox issue where clicking on Checkbox 3 marks Checkbox 1 and etc -
i have never encountered problem before. when click checkbox 1 checks checkbox 1, if click on checkbox 2 or 3 , still check first box.
<tr> <td><input type="checkbox" id="checkbox65" class="css-checkbox med" /> <label for="checkbox65" class="css-label med elegant" name="avatar" value="image1"/></label></td> <td><input type="checkbox" id="checkbox65" class="css-checkbox med" /> <label for="checkbox65" class="css-label med elegant" name="avatar" value="image2"/></label></td> <td><input type="checkbox" id="checkbox65" class="css-checkbox med"/> <label for="checkbox65" class="css-label med elegant" name="avatar" value="image3"></label></td> </tr>
i using checkbox styles csscheckbox.com - idk if issue. ideas?
you should change ids of input checkboxes , values of labels.
<tr> <td><input type="checkbox" id="checkbox65" class="css-checkbox med" /> <label for="checkbox65" class="css-label med elegant" name="avatar" value="image1"/></label></td> <td><input type="checkbox" id="checkbox66" class="css-checkbox med" /> <label for="checkbox66" class="css-label med elegant" name="avatar" value="image2"/></label></td> <td><input type="checkbox" id="checkbox67" class="css-checkbox med"/> <label for="checkbox67" class="css-label med elegant" name="avatar" value="image3"></label></td> </tr>
this should fix.
Comments
Post a Comment