reading table values

reading table values

 I have two columns in my table and the rows are created dynamically.
  1. <table id ="datatable"> 
     
    <tr>  
       
    <td>  
         
    <input type ="text">  
       
    </td> 
       
    <td>  
         
    <input type ="text">  
       
    </td>  
     
    </tr> 
    </table>
  2. For each row, I want to get the value of each table and insert them in an object as follows.

    var reading= new Object();  reading.Name = (column1).value  reading.Value = (column2).value  

    How can I do that?