javascript - Bootstrap Typeahead local, prefetch, or remote is required -


i try this example of twitters typeahead run getting error in chromes console:

uncaught error: 1 of local, prefetch, or remote required jquery-1.9.1.js:507

i using typeayhead 0.9.1 (nuget-package). version problem? examples set source , not local/prefetch/remote in request.

edit: turned out twitter bootstrap typeahead , twitter typeahead 2 different libraries.

this means need give list in typeahead search completion value.

you must pass @ least 1 data source (prefetch or remote) or data set (local).

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


also, should noted twitter typeahead , twitter bootstrap typeahead ain't same plugin. have different api. article read speak twitter bootstrap typeahead: http://twitter.github.io/bootstrap/javascript.html#typeahead used twitter typeahead!


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -