Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@commadelimited
Created January 19, 2012 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commadelimited/1641290 to your computer and use it in GitHub Desktop.
Save commadelimited/1641290 to your computer and use it in GitHub Desktop.
Refreshing jQuery Mobile widgets
<label for="sCountry">Country:</label>
<select name="sCountry" id="sCountry">
<option value="">Where You Live:</option>
<option value="ad">Andorra</option>
<option value="ae">United Arab Emirates</option>
</select>
var myselect = $("#sCountry");
myselect[0].selectedIndex = 3;
myselect.selectmenu('refresh');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment