I have question, When I make ajax call, and in success function I get json data, I can't use it out of success function
$.ajax({
type: 'GET',
url: url,
dataType: 'json',
success: function (response) {
getData[name] = response;
}
});
alert(getData[name]);
My question is how to work with getData out of ajax call