I would like to know the following how do I give return in a function created by me in a situation below. For always returns undefined object, but when I give an alert it returns the normal object.
function jjson(url){
var result;
$.getJSON( url, function(data) {
alert(data)
result = data;
});
return result;
}
ATT