I have a radio button that is the first column of many rows in an html table. The second column of each row is the corresponding text to each radio button. How can I select a specific radio button in column 1 if I am given a value that corresponds to column 2? For example, I have the word 'Dog' and I am trying to check/click the corresponding radio button from the following html table:
<table class="myClass">
<tr>
<td><input type="radio" name="radioName"></td>
<td>Dog</td>
</tr>
<tr>
<td><input type="radio" name="radioName"></td>
<td>Cat</td>
</tr>
</table>
The table must be assumed to be unchangeable. I know it is a poor way to use a table, but this is what I've got to work with. Thank you.