Hello ,
I want to show spinner while processing below data.

// SHOW SPIINER HERE
$.getJSON("./php/fetch_record.php",{Record_id: Schedule_id, ajax: 'true'}, function(j){
    for (var i = 0; i < j.length; i++)
    {
        $.post("/Test/Simple_form_submit",
            {
                //variables here
            },function(data){
        });
    }
// HIDE SPINNER HERE

I had tried show and hide div here
but div is showing on page.
But I want to display this as (we say) pop-up (type) on and process continues on backend.