Rahul Desai
Rahul Desai

Reputation: 15501

Unable to get typeahead working in my fiddle

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.

jsFiddle

What am I missing?

Upvotes: 1

Views: 77

Answers (1)

Kristaps Karlsons
Kristaps Karlsons

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

Related Questions