Loading in a bunch of json files from an array called bunchOfData. The .url is the url for each json file.
How do I read my variable "myI" in the processData function?
for(var i = 0; i < bunchOfData.length; i++){
$.getJSON(bunchOfData[i].url, {"myI":i}, function(ds){}).success(processData);
function processData(ds){
console.log(ds.myI); //undefined
}
}
console.log(arguments)?myIvalue you sent insideprocessData?