Organizational Research By

Surprising Reserch Topic

how to access the this inside ajax success callback function


how to access the this inside ajax success callback function  using -'jquery,ajax'

It seems that i cannot access $(this) inside jquery ajax success function. please see below code.

 $.ajax({
            type: 'post',
            url: '<?php echo site_url('user/accept_deny_friendship_request')?>',
            data: 'action='+$action+'&user_id='+$user_id,
            success: function(response){
               //cannot access $(this) here $(this).parent().remove();
            }
        });

    
asked Sep 14, 2015 by TerranceYarn
0 votes
72 views



Related Hot Questions



Government Jobs Opening


...