Bootstrap Typeahead local, prefetch, or remote is required [closed] Bootstrap Typeahead local, prefetch, or remote is required [closed] jquery jquery

Bootstrap Typeahead local, prefetch, or remote is required [closed]


This only means you need to give a list in which Typeahead will search for completion value.

You must really pass at least one data source (prefetch or remote) or a data set (local).

https://github.com/twitter/typeahead.js#jquerytypeaheaddatasets


Also, should be noted that Twitter typeahead and Twitter Bootstrap typeahead ain't the same plugin. They have different API. The article you read speak about Twitter Bootstrap typeahead: http://twitter.github.io/bootstrap/javascript.html#typeahead but you used it as Twitter typeahead!