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
You could use the .ajax method:
var locationType = 3; var url = 'blah blah blah' + '&locationType=' + locationType; $.ajax({ url: url, context: { lt: locationType }, success: function(results) { searchResults(results, this.lt); } });