Good day.

When transferring id ajax to the script, the system starts thinking. Tell me how to change the style of the cursor during the execution of the script?

$.ajax({ url: "ajax.php", type: "POST", data: {id: id}, // сдесь начинает думать 5-10секунд success: function(text) { $("#text").html(text); } // сдесь заканчивает думать }); //css .some{cursor:wait;} 

ps here I learned that at least through the classes it is done

    1 answer 1

    add up to ajax:


    Add to success:

    • @lampa thank you so much! I thought there would be a dark forest, but it turned out just everything - frank