JQuery parent () hide () in the ajax response


I want to be able to delete a user from a table then hide the div which shows them.

A user clicks on a button with class .buddy_delete which contains the info to pass to the php file which deletes them.

I have the following which works ok, but I need the $(this).parent().hide(); in the AJAX response instead of before the AJAX in case of any error, is this possible?

$('.buddy_delete').on('click', function(e) {
        var sei = $(this).attr('sei');
        var sui = $(this).attr('sui');
        $(this).parent().hide(); // ok here
            type: "POST",
            url: '/ajax/actions/remove_user_from_list.php?sei=' + sei + '&sui=' + sui,
            success: function (data) {
                    // $(this).parent().hide(); // doesn't work here, nothing happens
                } else {
                    $('#errorBoxEvent').html('Houston, we have a problem!');
        }); // End .ajax function

Set option context of ajax method:

   context: this,