Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

show spinner during API request pure html and jquery

$('#loadingDiv')
    .hide()  // Hide it initially
    .ajaxStart(function() {
        $(this).show();
    })
    .ajaxStop(function() {
        $(this).hide();
    })
;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #spinner #API #request #pure #html #jquery
ADD COMMENT
Topic
Name
9+6 =