Skip to content

Instantly share code, notes, and snippets.

@ericvoid
ericvoid / README.markdown
Last active December 15, 2015 10:59 — forked from gudbergur/README.markdown
Bootstrap Typeahead with three new features: selectfist option, source function call debounce and template support.

This is a fork of Bootstrap Typeahead that adds some more modifications.

Selectfirst: false

  $('.typeahead').typeahead({
    source: MYDATA

    // Typeahead will not select the first suggestion.
    // If the user press enter without selecting any suggestion
    // the onselect function will be called with the inputted text