I have Java Script file and i want do something after Ajax request/response is completed , so i found this function but i have multiple Ajax request/response and i want it to triger after all of theme completed.
$(document).ajaxComplete(function() {
alert("Completed");
});
$(function main() {
...
for (var i = 1; i < length; i++) {
$.ajax({...});
});
How could i implement this?