I have a table that displays a list of clients and has a fluff next to it to delete each client. I want to do this deletion via ajax, how do I make the line that is deleted from the client disappear without having to refresh the page?
Note: I'm using the jQuery Datatable plugin
<table id="appDatatable" class="table table-bordered table-hover">
<tbody>
@foreach($clientes as $cliente)
<tr>
<td>{{ $cliente->email }}</td>
<td>{{ $cliente->telefone }}</td>
<td class="text-center">
...
<a class="btn btn-danger btn-sm" title="Excluir cliente"
onclick="conf('{{ $cliente->id }}');">
<span class="fa fa-close"></span>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>