Getting out data from $.get() ajax method
how can i extract returned data from ajax $.get() method, to be used in further code ?? my code is similar to this:
-
$.get("page.php", {search: "42"}, function(data){
var storedData = data;
});
alert(storedData); //not working, but helps illustrate the situation
i know its a noob question but i just can't get through this
thx for any replies.