Search code examples
typeahead.jstypeaheadbootstrap-typeahead

Typeahead is not working


I have this example directly from typeahead.js website.

http://jsfiddle.net/CNMfL/163/

It is showing Uncaught Error: one of local, prefetch, or remote is required. What i am missing ?

I tried by changing source to local vice-versa, as suggested in some solutions but didnt work.


Solution

  • Add to the HTML part:

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/typeahead.js/0.11.1/typeahead.bundle.min.js"></script>

    Remove the "@import url" parts