bootstrap-ajax-typeahead
bootstrap-ajax-typeahead copied to clipboard
jsonP support?
Does it have support for jsonp support? I have tried to use the dataType: jsonp in the ajax call, however, its not working? Thanks!
It appears that if jQuery discovers the string "callback=?" in the url it makes the request JSONP.
$("input.typeahead").typeahead({
ajax: {
url: "https://example.com/json?callback=?",
method: "get"
}
});
That is how I got typeahead to do JSONP calls.