Reading table values per column
<p>I have two columns in my table and the rows are created dynamically. </p>

<pre><code>&lt;table id ="datatable"&gt;
  &lt;tr&gt; 
    &lt;td&gt; 
      &lt;input type ="text"&gt; 
    &lt;/td&gt;
    &lt;td&gt; 
      &lt;input type ="text"&gt; 
    &lt;/td&gt; 
  &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>For each row, I want to get the value of each table and insert them in an object as follows.  </p>

<pre><code>var reading= new Object();
reading.Name = (column1).value
reading.Value = (column2).value
</code></pre>

<p>How can I do that?</p>
