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
Could try:
function getResults(locationType) { $.getJSON(url, {p1:'xxx', p2: 'yyy'}, function(results) { searchResults(results, locationType) }); }