For instance,
Let's say we have the following table:
<table>
<tr>
<td>john</td>
<td>doe</td>
</tr>
</table>
- This table can be dynamically generated.
I am extracting values from the table using this code snippet:
table.find('tr').each(function(i){
var $tds = $(this).find('td input');
var a = $tds.eq(0).val();
var b = $tds.eq(1).val();
alert(a +" " b);
}
Is there a way to store these values in an ArrayList
or is it possible to use an ArrayList
for this purpose?