I am using the jquery autocomplete.when the ajax request completes jquery calls jsonpCallback with the response .can u suggest where to put jsonpCallback(data) function to use the data in $.each
$(".autoComplete").autocomplete({ source: function(req, add){
$.ajax({
type: "GET",
url: "http://herokory.herokuapp.com/autocomplete/jsonpCallback/a",
dataType:"jsonp"
});
var suggestions = [];
//process response
$.each(data, function(i, val){ //how do I get data variable
suggestions.push(val.value); });
add(suggestions);
}
});