Skip to content Skip to sidebar Skip to footer

Jquery Mobile: How To Re-render Select Box?

First time, When I load page, my select box is empty: Then I make ajax call and get the json data for above

Solution 1:

Never mind!

I should check documentation properly:

//refresh value         
$('#select').selectmenu('refresh');

//refresh and force rebuild
$('#secondaryTitle').selectmenu('refresh', true);

Solution 2:

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

Post a Comment for "Jquery Mobile: How To Re-render Select Box?"