TypeError: $(…).typeahead is not a function

前端 未结 3 2179
感情败类
感情败类 2021-01-07 17:34

This is very basic code. Still I am facing a problem. I think I am missing something, as mentioned on bootstrap site

\"Plugins can be included indivi

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-07 18:31

    if you see the error message "TypeError: $(…).typeahead is not a function" it mean typeahead function is not provided in the version of bootstrap you are using. Officially the typeahead is dropped from the new release 3.0. And is available separtely in typeahead.js.

    you need to include the the typeahead.js plugin the error will remove.

提交回复
热议问题