O'Reilly logo

Instant typeahead.js by Toby Osbourn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating typeahead.js into Bootstrap (Should know)

Bootstrap is a very useful collection of jQuery plugins and CSS styles that can be used to enable developers to get up and running quickly when it comes to creating a new website.

Bootstrap is another project to come out of Twitter's engineering department. It is quite fully featured and even has a rudimentary typeahead plugin built into it as of version 2.3. It is not as good as what typeahead.js offers though, so in this recipe we will walk through how we can integrate typeahead.js with Bootstrap.

Getting ready

The first thing we will need to do is to download Bootstrap. Until recently I would have advised you do a custom build and exclude typeahead from it, but as of the time of writing, Bootstrap ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required