How can I create a please wait loading animation using jQuery?
$body = $("body"); $(document). on( ajaxStart: function() $body. addClass("loading"); , ajaxStop: function() $body. removeClass("loading"); );
How to create loader using jQuery?
Answer: Use the ajaxStart() and ajaxStop() Method
You can create a preloader using the jQuery ajaxStart() and ajaxStop() method.