After clicking the checkbox, I like to get the value of the checkbox submitted.
Why the following page always get the value "20" for checkboxChoice and checkboxvalue no matter which checkbox I clicked?
Please help.
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="20" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="20">
</td>
</tr>
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="19" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="19">
</td>
</tr>
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="18" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="18">
</td>
</tr>
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name=" <tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="20" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="20">
</td>
</tr>
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="19" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="19">
</td>
</tr>
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="18" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="18">
</td>
</tr>
" value="20" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="20">
</td>
</tr>
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="19" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="19">
</td>
</tr>
<tr>
<td>
<div class='fg1'>
<input type="checkbox" name="checkboxChoice" value="18" checked onclick="submit()">
Choice
</div>
<input type="hidden" name="checkboxvalue" value="18">
</td>
</tr>