I don’t know how to get values from tables that don’t have an ID.
I would like to use DOM to get the value “03” from
<tr><th scope='row'>Total WUs</th><td>03</td></tr>
but the table doesn’t have an ID. It is the first table on the page. I’ll give a code printout of the whole table:
<table cellspacing='0' rules='all' border='1' style='border-collapse:collapse;'><tr><th scope='row'>User Name</th><td>laughing_squid</td></tr><tr><th scope='row'>Project Rank</th><td>1,156,036</td></tr><tr><th scope='row'>Team Rank</th><td>2</td></tr><tr><th scope='row'>Total Points</th><td>207</td></tr><tr><th scope='row'>Total WUs</th><td>03</td></tr><tr><th scope='row'>Points Yesterday</th><td>NA</td></tr><tr><th scope='row'>Points Today</th><td>69</td></tr><tr><th scope='row'>PPD Average</th><td>138</td></tr></table>
Check this out, this script uses JQuery which can be downloaded from here:
if you need only the value
03then use following: