I’m trying to remove the HR tag from the last row in a table.
Here’s my jQuery
$("#tableOptionResults tr:last td").find('hr').remove();
and here’s the same HTML:
<tr class="shadedRow">
<td colspan="3">
<hr />
</td>
</tr>
What am I missing?
Edit
This is definitely my fault. The HR wasn’t in the last row. I ended up using $('#tableOptionResults tr hr:last').remove(); to make it work.
1 Answer