I'm working with the following code:
<table>
<tbody>
<tr>
<td align="left">X</td>
<td>X1</td>
</tr>
<tr>
<td width="150" align="left">Y</td>
<td>Y1</td>
</tr>
<tr>
<td align="left">Status: </td>
<td colspan="4">
<select name="status" size="1">
<option selected="selected" value="2">one</option>
<option value="1">two</option>
</select>
</td>
</tr>
<tr>
<td width="150" align="left">Z</td>
<td>Z1</td>
</tr>
</tbody>
</table>
My goal is to delete this specific line using Javascript:
<tr>
<td align="left">Status: </td>
<td colspan="4">
<select name="status" size="1">
<option selected="selected" value="2">one</option>
<option value="1">two</option>
</select>
</td>
</tr>
The challenge is that there are no IDs or classes for identification. Is it possible to remove the row by searching for "Status: " or name="status" using JavaScript specifically for Firefox (intending to use it with Greasemonkey)?
Unfortunately, jQuery cannot be used and the code cannot be edited to add any IDs.
Warm regards, Bernte