【问题标题】:How to add input box and submit button to add option dynamically for select box dropdown angularjs and bootstrap?如何为选择框下拉angularjs和bootstrap添加输入框和提交按钮以动态添加选项?
【发布时间】:2017-04-11 03:05:10
【问题描述】:

如何将选项动态添加到选择框?假设如果有点头 要在选择框中选择的相关数据应该有一个选项 使用输入框添加新选项。

【问题讨论】:

    标签: angularjs twitter-bootstrap angular-ui-bootstrap


    【解决方案1】:

    如果您使用 angular-ui-bootstrap,请使用 typeahead 指令。

    https://angular-ui.github.io/bootstrap/#/typeahead

    没有。 4个例子应该对你有帮助。要添加新选项,您必须手动编写代码。因为,添加新选项不适用于 ui-bootstrap 和 Angular 材质中的选定元素。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-23
      • 2018-05-02
      • 2013-08-07
      相关资源
      最近更新 更多