<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>Text</th>
<th></th>
</tr>
<tr data-id="1">
<td>1</td>
<td>dasd</td>
<td>123</td>
<td><button>x</button></td>
</tr>
<tr data-id="2">
<td>2</td>
<td>Александр</td>
<td>Текст</td>
<td><button>x</button></td>
</tr>
</table>
$("table button").click(function() {
var row = $(this).closest('tr');
$.post("delete.php",{id: row.data('id')}, function(response){
if (response.success) {
row.remove();
}
}, 'json');
});