i have little trouble in populating an existing array with json returned data. Here is what i have
myarr=[];
function fillarr()
{
$.getJSON("test.php?c=10",function(data)
{
$.each(data, function(key, val)
{
myarr.push(data[val]);
}
});
});
}
My Problem is, that the array is emty outside the functions. Please help.
myarr?