JQuery call function when all AJAX requests are complete
问题 My question is a variant of the question here However, there are two differences: I don't know how many AJAX requests there are. For sure, there are at least 10. They run concurrently, or almost concurrently, and the number of requests changes every time. The function that I want to call makes AJAX requests as well. I don't want the AJAX requests to go on forever (which is what happened when I first tried). I only want this functionality one time. Here is my code: $("#calculateButton")