Search
 
SCRIPT & CODE EXAMPLE
 

HTML

show spinner during API request pure html and jquery

var $loading = $('#loadingDiv').hide();
$(document)
  .ajaxStart(function () {
    $loading.show();
  })
  .ajaxStop(function () {
    $loading.hide();
  });
Comment

show spinner during API request pure html and jquery

$('#loadingDiv')
    .hide()  // Hide it initially
    .ajaxStart(function() {
        $(this).show();
    })
    .ajaxStop(function() {
        $(this).hide();
    })
;
Comment

PREVIOUS NEXT
Code Example
Html :: html a href tooltip 
Html :: gradient background css for all browsers 
Html :: html if screen is smaller thatn 
Html :: getmdl 
Html :: flutter web load html 
Html :: how to draw a small line in html 
Html :: how to break the line in html 
Html :: image cut by div border 
Html :: HTML DOM innerText 
Html :: external javascript file not working 
Html :: input type text inside select option 
Html :: link md 
Html :: remove cell border css 
Html :: use svg as favicon react 
Html :: html scale svg 
Html :: character for degrees 
Html :: link href 
Html :: ul attributes in html 
Html :: html multiple file upload 
Html :: inserting a page break in markdown 
Html :: how to pass dynamic url in Link react 
Html :: px in server is different from html file 
Html :: html ms-text-size-adjust 
Html :: image slider with bootstrap 
Html :: double underline in html 
Html :: label input html 
Html :: intput field submit button 
Html :: how to set a var in js to be a download 
Html :: replit iframe 
Html :: html space code 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =