Dynamically populating Twitter Bootstrap Typeahead

后端 未结 1 590
迷失自我
迷失自我 2021-01-27 01:35

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\         


        
相关标签:
1条回答
  • 2021-01-27 02:19

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

    0 讨论(0)
提交回复
热议问题