How to update the source Option in bootstrap-typeahead.js

前端 未结 3 665
执笔经年
执笔经年 2021-01-05 03:26

I am using bootstrap-typeahead in order to allow multiple selection. Here is the demo.

The original code has been update by @Sherbrow Twitter bootstrap typeahead

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-05 04:14

    None of the given answers worked for me, I had to destroy the original typeahead instance and re initialize it.

    $('input').typeahead('destroy').typeahead(options);

提交回复
热议问题