Hy! I\'m using twitter bootstraps typeahead:
I\'m calling a page that returns a response with json_encode the page returns a name and an ID,
I want that the type
Sorry to "resurect" this post but i was going to be crazy !
If some of you have problems using theses sample codes ( none of them were working, all were returning "Undefined" instead of showing the name
Just add
displayKey: 'name',
Replace of course 'name' by your label var name returned by your remote source
( Quite hard to find up to date samples on it, most of samples found on the net are for the previous version of typeahead and not compatibles with new ones ... )