Getting Variable Value Outiside $.get() Function
Is there any way to access a variable assigned in a $.get() outside of the get function
Code:
var someVariable = null;
$.get(url, function (data){
someVariable = data;
alert (someVariable);// alerts data value
});
alert (someVariable);// alerts null
Benson Njonjo
Web Developer
http://www.verviant.comhttp://www.verviant.com/portfolio