I\'m trying to use jQuery to call some custom API via Ajax/$.getJSON.
Ajax/$.getJSON
I\'m trying to pass a custom value into the Ajax callback method, but that value
If you want to use locationType (whose value is 3) in the callback, simply use
locationType
3
function(results) { .....
thanks to closures, locationType will be automatically available in the callback.