Reputation: 15501
I am just working my way out with implementing the Twitter's typeahead plugin in my fiddle. However I am getting an error:
Uncaught TypeError: undefined is not a function
This error is on the line where I am mentioning ttAdapter()
. But I see ttAdapter()
is already mentioned in the plugin.
What am I missing?
Upvotes: 1
Views: 77
Reputation: 482
You were missing Bloodhound suggestion integration, which has to be instantiated with .initialize()
.
http://jsfiddle.net/Ca4rq/2/ should be what you're after. Adapted from https://twitter.github.io/typeahead.js/examples/
Upvotes: 1