Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

show spinner during API request pure html and jquery

var $loading = $('#loadingDiv').hide();
$(document)
  .ajaxStart(function () {
    $loading.show();
  })
  .ajaxStop(function () {
    $loading.hide();
  });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #spinner #API #request #pure #html #jquery
ADD COMMENT
Topic
Name
5+8 =