I was wondering if it was possible to gain access to returned JSON data outside of the JQuery getJSON method.. something like this..
var price = "";
$.getJSON("../JSONDeliveryPrice", null, function (data) {
price = eval(data.price);
});
console.log(price);
This doesn't work tho, is there another way to gain access to price outside of that block?