I have an HTML table of four columns: studentID
, first_name
, last_name
and 5 checkboxes with grades. How can I determine in PHP (or maybe using JQuery?) which check box(grade) was checked for each studentID
?
<tr>
<td>
<?php print $stud_row['student_id']; ?>
</td>
<td>
<?php print $stud_row['first_name']; ?>
</td>
<td>
<?php print $stud_row['last_name']; ?>
</td>
<td>
<input type="checkbox" name="id" value="a"> A
<input type="checkbox" name="id" value="b"> B
<input type="checkbox" name="id" value="c"> C
<input type="checkbox" name="id" value="d"> D
<input type="checkbox" name="id" value="f"> F
</td>
</tr>