i sometimes do something like var i; $.getJSON("url", function (json) { // update i i = json.var; });
how can i access the updated i outside the function(json)...?
i sometimes do something like var i; $.getJSON("url", function (json) { // update i i = json.var; });
how can i access the updated i outside the function(json)...?