Typeahead


Typeahead is a flexible JavaScript library that provides a strong foundation for building robust typeaheads.


Try typing 'Example 1', 'Hello world' or 'Goodbye world'.

<input class="form-control" id="exampleTypeahead" />

<script type="text/javascript">
(function () {
  var examples = new Bloodhound({
    datumTokenizer: Bloodhound.tokenizers.whitespace,
    queryTokenizer: Bloodhound.tokenizers.whitespace,
    local: ['Example 1', 'Hello world', 'Goodbye world']
  });

  $('#exampleTypeahead').typeahead({
    hint: true,
    highlight: true,
    minLength: 1
  },
  {
    name: 'examples',
    source: examples
  });
}())
</script>