Using the chrome dev tools and console, I want to create an organised table or array from the HTML table in the console. What I have so far returns a long string of all the span elements:
$('tbody > tr > td > span').text();
Would someone be able to educate me as to how I can create an array of each row in the HTML table?
(site for ref: https://www.copart.com/lotSearchResults/?free=true&query= as you can see there's no class's or id's on any of the elements in the table)
EDIT: table structure as requested in comments
<tr>
<td><span data-uname="lotsearchLotnumber">1997</span>
<td><span data-uname="lotsearchLotnumber">FORD</span>
<td><span data-uname="lotsearchLotnumber">45</span>
</tr>
<tr>
<td><span data-uname="lotsearchLotnumber">1998</span>
<td><span data-uname="lotsearchLotnumber">FORD</span>
<td><span data-uname="lotsearchLotnumber">40</span>
</tr>
...
I'd like to output an array like so:
[1997, FORD, 45]
[1998, FORD, 40]
...