Hello everyone. I am building a web application having various tables and 4-5option buttons in each table. When user check on one of these option buttons then the option is saved at server.
I want whenever user returns the option marked by him earlier should be preloaded. For example if user marks option 'a' to Q1, then option 'a' of Q1 should be checked automatically(on loading of page).
Here's the code of how table and options were made--
<table width="891" cellspacing='5' id = "1" style='font-family:verdana, Times, serif; font-size:11pt;text-align:justify;'>
<tr>
<td width="877" colspan="2" ><b>Q 1. </b> Consider four digit numbers for which the first two digits are equal and the last two digits are also equal. How many such
numbers are perfect squares?</td>
</tr>
<tr>
<td style='display:inline;' valign='top'>
<b>
<input name='opt0' type='radio' id='opt0' onClick=" processRadio(1,'a')" value='a' > a)</b> 2</td>
</tr>
<tr>
<td style='display:inline;' valign='top'><b>
<input type='radio' id='opt1' name='opt0' value='b' onClick="processRadio(1,'b')" >
b)</b> 4</td>
</tr>
<tr>
<td style='display:inline;' valign='top'><input type='radio' id='opt2' name='opt0' value='c' onClick="processRadio(1,'c')" >
<b>c)</b> 0</td>
</tr>
<tr>
<td style='display:inline;' valign='top'><input type='radio' id='opt3' name='opt0' value='d' onClick="processRadio(1,'d')" >
<b>d)</b> 1</td>
</tr>
<tr>
<td style='display:inline;' valign='top'><input type='radio' id='opt4' name='opt0' value='e' onClick="processRadio(1,'e')" >
<b>e)</b> 3</td>
</tr>
</table>