I have simplified the situation as shown below:
<table>
...
<tr><td>....</td><td><button...>delete</button></td></tr>
<tr><td>somestuff</td><td>some other stuff</td></tr>
</table>
On click of the delete button, I delete the row by using:
$(this).closest('tr').remove();
My question is, how do I delete the next row too using some CSS selector for the next row. I have a work-around by using a running id number for each row, picking the id # of the one deleted, incrementing it and then using it to delete the next row, but I think there must be some CSS selector to select the next row.