Answers for "reference self in ajax callback"

0

reference self in ajax callback

$.ajax({
    context: this,
    type: 'post',
    url: '<?php echo site_url('user/accept_deny_friendship_request')?>',
    data: 'action='+$action+'&user_id='+$user_id,
    success: function(response){
       //can access this now!
    }
});
Posted by: Guest on February-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language