for (i in meta) { (function (N) { $.ajax({ type: "GET", url: meta[i].url, dataType: "json", success: function(data){ $("#"+N.selector).html(data); } }); })(meta[i]); };