Bootstrap Typeaheads

In this article I’m explaining about Bootstrap Type heads. The typeahead input fields are very popular in modern web forms. Twitter Bootstrap Type heads jQuery plugin for auto completion. The main purpose of typeahead is to improve the user experience by supplying hints or a list of possible choices based on the text they've entered while filling a from or searching something — like the Google search.

If your web application needs a fully-featured queryable search box, typeahead.js can help. Some of its capabilities and features include:

Download typeahed.min.js file from



Use these four files

<link href="~/Content/bootstrap.min.css" rel="stylesheet" />

<script src="~/Scripts/jquery-1.9.1.min.js"></script>

<script src="~/Scripts/bootstrap.min.js"></script>

<script src="~/Scripts/typeahead.min.js"></script>

JavaScript Code


<script type="text/javascript">

    $(document).ready(function () {


            name: 'accounts',

            local: ['Rohit','Pawan','Sumit','Sunil','Manoj','Anchal','Kamlakar',






CSS Code Here

<style type="text/css">

    .typeahead-div {




    } {

        border2px solid #CCCCCC;





        outlinemedium none;

        padding8px 12px;




    .typeaheads {




        .typeaheads:focus {

            border2px solid #0097CF;



    .fill-typeahead {

        box-shadow0 1px 1px rgba(0, 0, 0, 0.075) inset;



    .tt-hint {




    .tt-dropdown-menu {


        border1px solid rgba(0, 0, 0, 0.2);


        box-shadow0 5px 10px rgba(0, 0, 0, 0.2);


        padding8px 0;




    .tt-suggestion {



        padding3px 20px;








        .tt-suggestion p {





Html Code Here


<div class="container" style="width50%;">

    <div class="typeahead-div">

        <input type="text" class="typeaheads fill-typeahead" autocomplete="off" spellcheck="false">




Bootstrap Typeaheads


Leave Comment