html单选按钮用jQuery中prop()方法设置

模拟单选按钮时用jQuery,prop方法来设置。

赋默认选中值:$("#" + id).find("input:radio[value='" + state + "']").prop('checked', 'true');

取消默认选择值: $("#" + id).find("input:radio").prop('checked', false);  

原文地址:https://www.cnblogs.com/meng9527/p/7209335.html