当前位置 博文首页 > 小龙狗的博客:jQuery中的prop()设置单选框不生效
将
$("#sexRadio1").attr("checked",true);
替换为
$("#sexRadio1").prop("checked",true);