javascript - Jquery mobile - Select Menu doesn't refresh the display value -


i trying use pick list in mobile app using select menu. have picked below example jquerymobile website. creates popup list , shows default first value (i.e. standard: 7 day). if use popup select different value, "rush: 3 days", doesn't update display value. if open again can see "rush: 3 days" selected in popup display value remains unchanged.

<label for="select-choice-min" class="select">shipping method:</label> <select name="select-choice-min" id="select-choice-min" data-mini="true" onchange="changevalue(this.value);">    <option value="standard">standard: 7 day</option>    <option value="rush">rush: 3 days</option>    <option value="express">express: next day</option>    <option value="overnight">overnight</option> </select>  

i tried manually refresh using onchange() didn't work:

function changevalue (z) {      $('#select-choice-min').selectmenu('refresh');  } 

here few screenshots: enter image description here

enter image description here

enter image description here

jquery: jquery-2.1.4.min.js jqm: jquery.mobile-1.4.5.min.js

jquery mobile 1.4.5 not work fine jquery 2.x.x. if possible try using jquery 1.x.x, should work.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -