jQuery Ajax Loading Spinner

jQuery Ajax Loading Spinner

August 21, 2022
jQuery Ajax Loading Spinner
jQuery(document).ajaxSend(function() {
  jQuery("#overlay").fadeIn(300); 
});



jQuery(document).ajaxSend(function(event,xhr,options) {console.log(xhr);
    if(xhr.statusText =="success" ){
     jQuery("#overlay").fadeIn(300); 
    }   
    else{
     jQuery("#overlay").hide(); 
    }
});

 

Leave A Comment

Avada Programmer

Hello! We are a group of skilled developers and programmers.

Hello! We are a group of skilled developers and programmers.

We have experience in working with different platforms, systems, and devices to create products that are compatible and accessible.