how can we say “before load() function do something”

how can we say “before load() function do something”

I want to get a file with the load(); function in PHP ajax, and i want to make a spinner before the load() function get my file. so how can i say : before the load() function get the file in my div put a spinner in this place, after the load() function get the file put this file in place of the spinner.

I want to get a file with the load(); function in PHP ajax, and i want to make a spinner before the load() function get my file. so how can i say : before the load() function get the file in my div put a spinner in this place, after the load() function get the file put this file in place of the spinner.

<div class="storeShowInModal"></div>
$("#myStoreId").click(function()
{
    $('.storeShowInModal').html('<i class="fa fa-spinner fa-spin w3-text-blue" style="font-size:36px"></i>');
    $(".storeShowInModal").load("myStore.php");
});


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

jQuery ajax get request method example

### jQuery Ajax Get Request Method Example This article is originally published at [https://www.tutsmake.com/jquery-api-ajax-get-method-example/](https://www.tutsmake.com/jquery-api-ajax-get-method-example/...

Ajax Form Submit examples using jQuery

In this jquery ajax form tutorial – you have learned how to send or submit the form data or multipart form using the jquery ajax on the server. Also, you have known the related queries of jquery ajax form.

ASP.NET MVC Application with JQuery, AJAX

Let's have a sample example: We have a submit button in our JQuery AJAX MVC application. Let's try to show a message when it is clicked. ASP.NET MVC Application - Using JQuery, AJAX