How to populate javascript model from html table data
<p>I am having follwoing type of  dynamic UI through table on my page</p>

<pre><code>&lt;table id="tblUserAttendance"&gt;
 &lt;tr id="135"&gt; &lt;td&gt; 1 &lt;/td&gt;
               &lt;td&gt; Student 1 &lt;/td&gt; 
               &lt;td&gt; &lt;input checked="checked" name="rdo135" type="radio" value="true" /&gt; Pre 
                    &lt;input name="rdo135" type="radio" value="false" /&gt; Absent
               &lt;/td&gt;
 &lt;/tr&gt;
&lt;tr id="136"&gt; &lt;td&gt; 1 &lt;/td&gt;
               &lt;td&gt; Student 1 &lt;/td&gt; 
               &lt;td&gt; &lt;input checked="checked" name="rdo136" type="radio" value="true" /&gt; Pre 
                    &lt;input name="rdo136" type="radio" value="false" /&gt; Absent
               &lt;/td&gt;
 &lt;/tr&gt;
&lt;tr id="137"&gt; &lt;td&gt; 1 &lt;/td&gt;
               &lt;td&gt; Student 1 &lt;/td&gt; 
               &lt;td&gt; &lt;input checked="checked" name="rdo137" type="radio" value="true" /&gt; Pre 
                    &lt;input name="rdo137" type="radio" value="false" /&gt; Absent
               &lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>I want to populate following type of model using above table dynamically to post data to server.</p>

<pre><code>var student = {};
  student.Id = Id;//where Id may be equal to 135
  studnet.IsPresent = true;// if that particualar radio button is checked  else false
</code></pre>

<p>i want to create array of such students which should be equal to the number of rows in the above table.</p>

<p>Can you please tell how to achieve this.</p>
