如何禁用jquery单选按钮?以下不起作用:
<input type="radio" id="myButton" name="myButton" />
$("#myButton").attr({disabled: true});
以下禁用了按钮,但它破坏了按钮的布局,可能是因为它的 RADIO 按钮:
$("#myButton").button("option", "disabled", true );
$("#myButton").attr('disabled',true);
示例:http: //jsfiddle.net/eUgdm/
$("#myButton").button({disabled:true});