wie man auf die $ (this) innerhalb der Ajax Success Callback Funktion zugreift
Es scheint, dass ich nicht auf $ (this) innerhalb der JQuery Ajax-Erfolgsfunktion zugreifen kann. Bitte siehe untenstehenden 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();
}
});