Answers for "jquery ajax add loading"

1

jquery ajax add loading

var $loading = $('#loadingDiv').hide();
$(document)
  .ajaxStart(function () {
    $loading.show();
  })
  .ajaxStop(function () {
    $loading.hide();
  });
Posted by: Guest on December-01-2020

Browse Popular Code Answers by Language