Here is my DOM:
...
<table>
<tbody>
<tr>
<td>1</td>
<td><img src="../first"></td>
<td>John</td>
<\tr>
<tr>
<td>2</td>
<td><img src="../second"></td>
<td>Peter</td>
<\tr>
</tbody>
</table>
...
Now I want to make this array: (to pass it to the server side and make a .CSV export of it)
var arr = array();
arr = array(array(1,'../first','John'),array(2,'../second','Peter'));
How can I make array above from the DOM ?
Note: I use jquery, So I can get the src attribute by using this:
$('img').attr('src');