Bootstrap-3-Typeahead
Bootstrap-3-Typeahead copied to clipboard
bug with remote source
I use this code
var languagesSource = new Bloodhound( { datumTokenizer: function (datum) { return Bloodhound.tokenizers.whitespace(datum.value); }, queryTokenizer: Bloodhound.tokenizers.whitespace, remote: { url: "http://localhost/languages.php?PHPSESSID=4qjiv6gchdp4n8uk7gpvt7ghue&format=json&language=%QUERY", wildcard: '%QUERY', } }); languagesSource.initialize(); $('#languages').typeahead( { highlight: true, minLength: 2, }, { displayKey: 'value', source: languagesSource.ttAdapter() }).focus();
This code work fine with this js-files
I see some result without bootstrap3 support After adding to head section this string