Skip to content

Instantly share code, notes, and snippets.

@commadelimited
Created January 19, 2012 17:22
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/1641315 to your computer and use it in GitHub Desktop.
Save commadelimited/1641315 to your computer and use it in GitHub Desktop.
Refreshing jQuery Mobile widgets
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Layout view:</legend>
<input type="radio" name="radio-view" value="list" />
<label for="radio-view-a">List</label>
<input type="radio" name="radio-view" value="grid" />
<label for="radio-view-b">Grid</label>
<input type="radio" name="radio-view" value="gallery" />
<label for="radio-view-c">Gallery</label>
</fieldset>
</div>
$("input[value=grid]").attr('checked',true).checkboxradio('refresh');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment