Basically, if my first <td>
within my <tr>
has an <a>
element inside it, I need to change my <tr>
. That's as best as I could explain it right now. Example code is below. I thought about using document.links
but I don't know if that's the way to go.
Before:
<tr>
<td>11001122334</td> <!-- Number will be a link once the page loads due to a browser extension -->
<td>Valid</td>
<td>Still Valid</td>
</tr>
After:
<tr class="valid">
<td><a href="#">11001122334</td></a> <!-- Number will be a link once the page loads due to a browser extension -->
<td>Valid</td>
<td>Still Valid</td>
</tr>