SO fiddle

Test Fiddle mainly for SO Questions

by Nick Craver

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/overcast/jquery-ui.css">
<div id="radio">
  <input type="radio" name="radio" value="true" checked="checked" id="radio1" /><label for="radio1">Yes</label>
  <input type="radio" name="radio" value="false" id="radio2" /><label for="radio2">No</label>
</div>

JavaScript

$('#radio').buttonset();
$('[name="radio"][value="false"]').attr("checked", true);
$('#radio').buttonset("refresh");