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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -