jquery bootstrap selectpicker refreshing lists based upon previous list choice

前端 未结 5 1990
甜味超标
甜味超标 2020-12-28 12:38

I have three drop down lists, one list is populated on page load and doesn\'t change. The 2nd and 3rd lists may change depending on the selection. This functionality is wo

5条回答
  •  眼角桃花
    2020-12-28 13:27

    I found your question after having the same problem. Adding $('.selectpicker').selectpicker('refresh'); exactly after adding items to my list did the job.
    So you probably need to find the correct place to put it. Maybe in the success part of your ajax call.

提交回复
热议问题