vendredi 30 novembre 2018

Laravel - Delete Data without Refresh using Ajax

I want to delete my data in table without refreshing it how to do it thanks? any help please thank you.

Here is my View I used href to get the specific ID and delete single row.

 @foreach ($clients as $client)
           <tr>
               <td></td>
               <td></td>

    //I want to click this then delete without refresh//   <td><a href="/admin/clients/archTrash/" class="btn btn-info">Active</a></td>

//I want to click this too then delete without refresh// <td><a href="/admin/clients/archTrashPermanent/" class="fa fa-trash btn btn-danger"></a></td>
           </tr>      
           @endforeach



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2AAp3BW
via IFTTT

1 commentaire: