Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("a.remove").click(function(){
- var id = $(this).attr('id')
- var user = $(this).attr('value')
- $.ajax({
- success : function(){
- var url = "includes/action.php?page=access&action=remove";
- var popupmessage = "Error";
- $.post(url, { id: id },
- function(data){
- return true;
- });
- }
- });
- });
- $("<a class="remove" href="#"></a>").insertAfter('#accesstable tr:last');
- $('a.remove').live('click', function(){
- var id = $(this).attr('id')
- var user = $(this).attr('value')
- $.ajax({
- success : function(){
- var url = "includes/action.php?page=access&action=remove";
- var popupmessage = "Error";
- $.post(url, { id: id },
- function(data){
- return true;
- });
- }
- });
- });
- $("a.remove").live('click', function(){ .. });
- $(document).on('click', 'a.remove', function(){
- $("a[class='remove']").live('click', function(){});
- $(document).on('click', 'a.remove', function(){..});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement