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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire