设置 单选按钮radio设置选中,使用 $("#radio01").attr("checked","checked");//radio未选中
以为这样写不对,换了$("#radio01").attr("checked",true);//radio仍然未选中.原来attr在Query1.6版本之前.attr存在一些bug、在1.6之后它会自动把.attr()转换成.prop()。
$("#radio01").prop("checked","checked");或者$("#radio01").prop("checked",true);都可以被选中