Your complete
callback is resetting status.html()
, AND your beforeSend
is emptying status
with status.empty();
. Remove that line!
Then try prepending the newest message wrapped in some markup, rather than overwriting the entire contents of status
:
complete: function(xhr) {
var message = '<div class="new">' + xhr.responseText + '</div>';
status.prepend(message);
}