как получить доступ к $ (this) внутри функции обратного вызова ajax success
Кажется, я не могу получить доступ к $ (this) внутри функции успеха jquery ajax. пожалуйста, смотрите ниже код.
$.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();
}
});