I am trying to navigate the row of the table that was clicked to extract data from other parts of the row.
This is a snippet of the HTML line the button was clicked on:
<tr><td class=" sorting_1">Foobar</td>
<td>Hello</td><td><a href="/some/path/abc.html">42</a></td>
<td>0</td>
<td><img src="/images/img.gif"></td>
<td>7:44 AM</td>
<td><ul><li><a href="/path2/read/3">Read it</a></li>
<li><a class="booboo" href="#">Just do it</a></li>
</ul></td>
The cell element that was clicked has the class "booboo".
I want to be able to select the following data:
- identifier used in the url of the previous brother li (in the above example 3)
- name in the first column (in the example above it is "Foobar")
- URL of the anchor element in the 2nd cell (should be /some/path/abc.html in this example)
Can someone specify the functions needed to navigate the table row, preferably with a snippet showing how to select values ββin the example snippet above?