I am having follwoing type of dynamic UI through table on my page
<table id="tblUserAttendance">
<tr id="135"> <td> 1 </td>
<td> Student 1 </td>
<td> <input checked="checked" name="rdo135" type="radio" value="true" /> Pre
<input name="rdo135" type="radio" value="false" /> Absent
</td>
</tr>
<tr id="136"> <td> 1 </td>
<td> Student 1 </td>
<td> <input checked="checked" name="rdo136" type="radio" value="true" /> Pre
<input name="rdo136" type="radio" value="false" /> Absent
</td>
</tr>
<tr id="137"> <td> 1 </td>
<td> Student 1 </td>
<td> <input checked="checked" name="rdo137" type="radio" value="true" /> Pre
<input name="rdo137" type="radio" value="false" /> Absent
</td>
</tr>
</table>
I want to populate following type of model using above table dynamically to post data to server.
var student = {};
student.Id = Id;//where Id may be equal to 135
studnet.IsPresent = true;// if that particualar radio button is checked else false
i want to create array of such students which should be equal to the number of rows in the above table.
Can you please tell how to achieve this.