How do I access json data outside of $.getJSON() ?
How do I access json data outside of $.getJSON() ?
function get_something(){
$.getJSON("get_something.php",function(json){
console.log(json.something);
});
}
How would I use the value of json.something outside of the get_something(); function?
Topic Participants
dougneiner
01001010b