我可以预期读取jQueryUI单选按钮的值,但是,我无法以编程方式设置它。无论使用哪种方法更改单选按钮的值,jQueryUI界面都不会更新其接口。jQueryUI Radio/Check按钮不会以编程方式更改
<div id="radio">
<input type="radio" name="radio" value="true" checked="checked" />Yes
<input type="radio" name="radio" value="false" />No
</div>
<script type="text/javascript">
$('#radio').buttonset();
// One of the many ways that won't work.
$('[name="radio"]:radio:checked').val("false");
</script>
你在哪里使用jQuery UI? – 2010-08-25 20:07:36