Advertisement
Guest User

Untitled

a guest
May 11th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.77 KB | None | 0 0
  1. $('.del').click(function(){
  2.              var idcu = event.target.id;
  3.               $.ajax({
  4.                     url: 'login.php',
  5.                     type: 'post',
  6.                     data: {
  7.                         type: 'del_customer',
  8.                         ids: idcu
  9.                     },
  10.  
  11.                     success: function(response) {
  12.                         var msg = '';
  13.                         if (response != '') {
  14.                             $(function() {
  15.                                 alert("Usunięto!");
  16.                                    
  17.                             });
  18.                         } else {
  19.                             $('#table').text('Niedziała');
  20.                         }
  21.                     }
  22.                 });
  23.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement