【问题标题】:Get Error while refreshing bootstrap-select刷新引导选择时出错
【发布时间】:2019-08-30 02:41:28
【问题描述】:

我使用 bootsrap-select

当我参考 Bootstrap-select 时出现此错误

错误是 :TypeError: this.$element.find(...)[0] is undefined

刷新时:$('.selectpicker').selectpicker('refresh');

感谢

【问题讨论】:

    标签: jquery bootstrap-select


    【解决方案1】:

    我修复了这个错误

    我们给标签一个 id 并使用该 id 来引用它。

    <select id="selectid" class="selectpicker">
    <option>1</option>
    <option>2</option>
    </select>

    现在刷新

    $('#selectid').selectpicker('refresh');

    【讨论】:

      猜你喜欢
      • 2015-12-27
      • 2018-10-16
      • 2018-12-30
      • 2015-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-29
      相关资源
      最近更新 更多