ajax.complete(handler) example jquery
snippet in javascript

ajax.complete(handler) example jquery

user1233

$(document).ajaxStart(function(){
  $("#selector").css("display", "block");
});

$(document).ajaxComplete(function(){
  $("#selector").css("display", "none");
});

all ajaxcomplete event

user1751

//when document load and complete all ajax response this event will fire only one time
$(document).ajaxStop(function(){
  alert("All AJAX requests completed");
});