2
Some way to use jquery and selectors in a way similar to this?
$("#tabela td").empty();
I need to delete only the lines tr
containing td
of a table like this, but not the rows tr
which contain elements th
.
The way I’m doing, eliminate the td
, but not the tr
containing td
.
<table id = "tabela">
<tr>
<th>title</th>
</tr>
<tr>
<td>teste</td>
</tr>
</table>
It’s all right, just remove the
tr
's withtd
's in this way.– Marcelo Aymone