How can I catch the completion action before success action in jquery ajax?

How can I catch the completion action before success action in jquery ajax?

I want to do something immediately when the ajax request has response.And I want to do this before success action.This is my codes:

$.ajaxSetup({
 contentType: "application/x-www-form-urlencoded;charset=utf-8",
 complete: function(xhr){
  alert("complete");
 }
});




function save(){

 var frm = $("#frm").serialize();

 $.post("<%=request.getContextPath()%>/user/saveUserInfo.action", frm, function(result){
   alert(result);
 });
}


But,the value of result is shown before complete function.