function test(){
$.getJSON( notebook-json-data.php, function( data ) {
var myData = data;
});
}
Here in my function i get json objects, but i want to access myData
variable from out side the scope of its function.
I have tried setting var myData
outside the function but no luck.. :(
I am not familiar with JSON, did i need any parsing?
how to set this variable as global??
Please help...