Buttonset() - Radio - Trigger Toggle Click
See: http://stackoverflow.com/questions/5145728/jquery-manually-set-buttonset-radios
by bizamajig
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css">
<form>
<div id='radio'>
<input type='radio' name='x' id='x0' value='0'><label for='x0'>hello</label>
<input type='radio' name='x' id='x1' value='1'><label for='x1'>world</label>
</div>
</form>
<button id='banana'>click me to check "hello" above</button>
JavaScript
$(function() {
$('#radio').buttonset();
$('#banana').button();
$('#banana').click(function() {
$('#x0').attr('checked', true).button('refresh');
});
});