I'm having a situation, where I have a table that does not have class
. It looks like this:
<table>
<tr> //Pegar aqui
<td>
//Aqui continua a tabela
</td>
</tr>
<tr> //Pegar aqui
<td>
//Aqui continua a tabela
</td>
</tr>
</table>
Return I want to do:
<tr>
//oque tem dentro
</tr>
<tr>
//oque tem dentro
</tr>
In this way, we have tables inside tables. I would like to get the entire list of the first <tr>
. But when I select $("table tr")
, it enters the other elements and selects everything.
How do I select only the first career of <tr>
, and not enter into them?