AJax does not work with bootstrap-select

前端 未结 1 1887
栀梦
栀梦 2020-12-05 19:20

I found flask-jquery-ajax example where the user selects an item from the vehicle \"Make\" drop down menu, the vehicle \"Model\" drop down menu is populated by making an AJA

相关标签:
1条回答
  • 2020-12-05 20:04

    After AJAX is done, you need to reload the plugin:

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

    or

    success: function(data)
    {
      $("#model_select").html(data).selectpicker('refresh');
    }
    
    0 讨论(0)
提交回复
热议问题