I want to show the loading image while AJAX request is not finished processing and hasn’t come back from server, is there any options that handles the ajax while status is not complete
jQuery.ajax({
url: "/privileges/users/get-group-users",
type: "POST",
dataType: 'JSON',
data: {
"group_id":groupId
},
success: function(users){
},
error: function(e){
}
});
is there any option like success or error ???
use
ajaxStart - ajaxStop:JS: