I have a scenario where I am working with two HTML tables within an iframe tag. These tables do not have any class or id attributes specified. My goal is to use jQuery to locate the first row of the second table and hide it. The structure of my tables is as follows: Note: Both tables are contained within the iframe tag, and I specifically need to hide the first row of the second table.
<table>
<tr>
<td> 1 </td>
.
.
.
</tr>
</table>
The first row of the following table needs to be hidden:
<table>
<tr>
<td> This row should be hidden() </td>
</tr>
</table>
I have attempted various methods such as the one shown below:
$( "table[1] tr:first" ).css("display", "none");
However, these attempts have not yielded any results. Any assistance would be greatly appreciated.