Skip to content Skip to sidebar Skip to footer

Dynamically Populating Twitter Bootstrap Typeahead

Typeahead works if I give a static array as the source, but when I try to generate the array with function it won't populate its dropdown list. $('#mix-artist' ).typeahead({

Solution 1:

You need your searchArtist function to take the process callback. Instead of returning the array you should call process(artists).


Post a Comment for "Dynamically Populating Twitter Bootstrap Typeahead"