Typeahead problems with Bootstrap 3.0 RC1

update 14 feb 2014 As mentioned by laurent-wartel try https://github.com/hyspace/typeahead.js-bootstrap3.less or https://github.com/bassjobsen/typeahead.js-bootstrap-css for additional CSS to use typeahead.js with Bootstrap 3.1.0. Or use use the “old” (TB 2) plugin with the new Bloodhound suggestion engine: https://github.com/bassjobsen/Bootstrap-3-Typeahead/issues/26 Twitter’s typeahead doesn’t seem ready for Twitter’s Bootstrap 3. To use Twitter’s typeahead with Twitter’s Bootstrap you will need … Read more

CSS issue on Twitter Typeahead with Bootstrap 3

EDIT: Updated for Bootstrap 3.0 EDIT 2: Typeahead call was modified. See new jsfiddle After playing around with the styling it looks like the form-control class doesn’t quite line-up with the tt-hint. So I made sure the margins and borders line up. Taking Hieu Nguyen’s answer and adding border-radius and support for input-small/input-large CSS .twitter-typeahead … Read more

How do we set remote in Typeahead.js?

Typeahead.js version 0.10.0 now uses a separate component called a suggestion engine for providing the suggestion data. The suggestion engine which ships with Typeahead.js is called Bloodhound. Hence you cannot “define remote without having to define a dataset function”. An example of this working with a remote data source (I’m querying the TheMovieDb API, try … Read more

twitter bootstrap typeahead ajax example

Edit: typeahead is no longer bundled in Bootstrap 3. Check out: Where is the typeahead JavaScript module in Bootstrap 3 RC 1? typeahead.js As of Bootstrap 2.1.0 up to 2.3.2, you can do this: $(‘.typeahead’).typeahead({ source: function (query, process) { return $.get(‘/typeahead’, { query: query }, function (data) { return process(data.options); }); } }); To … Read more