jquery bootstrap selectpicker refreshing lists based upon previous list choice

前端 未结 5 1996
甜味超标
甜味超标 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:20

    if refresh method doesn't help, try adding some delay.

        setTimeout(() => {
          jQuery('.selectpicker').selectpicker('refresh');
        }, 500);
    

提交回复
热议问题