How can wait for ajax call end before relooping in foreach? – Jquery ajax
I am trying to use Promises but I don't know if in this case, are useful. $.getJSON("url", "data", function(json) { json.forEach(function(item) { //do something $.get("url", "data", function(response) { //MAKE SURE THIS BODY IS SOLVED BEFORE RELOOP??? }); }) }) The…