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/1641318 to your computer and use it in GitHub Desktop.
Save commadelimited/1641318 to your computer and use it in GitHub Desktop.
Refreshing jQuery Mobile widgets
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<legend>Agree to the terms:</legend>
<input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
<label for="checkbox-1">I agree</label>
</fieldset>
</div>
$('#checkbox-1').attr('checked',true).checkboxradio('refresh');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment