I am making jquery calls to get and getJSON, but cannot access returned values outside of callback function. How can I access the returned data?
var
This is because it is done asynchronous (one of the basic principles of AJAX). You can set async to false or use some other callback construction to use your value returned from the get call.