SHARE
TWEET

Untitled

a guest Jun 25th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("a.remove").click(function(){
  2.     var id = $(this).attr('id')
  3.     var user = $(this).attr('value')
  4.     $.ajax({
  5.         success : function(){
  6.             var url = "includes/action.php?page=access&action=remove";
  7.             var popupmessage = "Error";
  8.             $.post(url, { id: id },
  9.                 function(data){
  10.                     return true;
  11.             });
  12.         }
  13.     });
  14. });
  15.      
  16. $("<a class="remove" href="#"></a>").insertAfter('#accesstable tr:last');
  17.      
  18. $('a.remove').live('click', function(){
  19.     var id = $(this).attr('id')
  20.     var user = $(this).attr('value')
  21.     $.ajax({
  22.         success : function(){
  23.             var url = "includes/action.php?page=access&action=remove";
  24.             var popupmessage = "Error";
  25.             $.post(url, { id: id },
  26.                 function(data){
  27.                     return true;
  28.             });
  29.         }
  30.     });
  31. });
  32.      
  33. $("a.remove").live('click', function(){ .. });
  34.      
  35. $(document).on('click', 'a.remove', function(){
  36.      
  37. $("a[class='remove']").live('click', function(){});
  38.      
  39. $(document).on('click', 'a.remove', function(){..});
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top