JQuery Mobile: How to re-render select box?

前端 未结 2 1090
感情败类
感情败类 2021-01-05 11:46

First time, When I load page, my select box is empty:


Then I ma

相关标签:
2条回答
  • 2021-01-05 12:14

    Don't ask me why, but this only worked for me until I used double quotes ->"<- for all strings involved in this instruction:

    $("#secondaryTitle").selectmenu("refresh", true);//working

    I had it like this:

    $('#secondaryTitle').selectmenu('refresh', true);//not working

    and it not worked :S :S :S

    0 讨论(0)
  • 2021-01-05 12:17

    Never mind!

    I should check documentation properly:

    //refresh value         
    $('#select').selectmenu('refresh');
    
    //refresh and force rebuild
    $('#secondaryTitle').selectmenu('refresh', true);
    
    0 讨论(0)
提交回复
热议问题