I have two columns in my table and the rows are created dynamically.
<table id ="datatable">
<tr>
<td>
<input type ="text">
</td>
<td>
<input type ="text">
</td>
</tr>
</table>
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?
Updated: set error message if is empty