I'm trying to do a bunch of ajax requests but I need them to run one at a time. The below only seems to work on the first object and I think it's because it's trying to run everything at the one time.
$(fullurllist).each(function(index,element){
runAjax(element.url)
})
function runAjax(dataURL){
$.ajax({
url:dataURL,
method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: function (data) {}
})
}