问题:设置radio选中状态失效
$("#matchRadio").attr('checked');
//解决方案以及原因:
//**如果你的jQuery库的版本是1.6以下的,使用attr方法 如果你的jquery库的版本是1.6(含1.6)以上的,使用prop方法**
$("#matchRadio").prop("checked","checked");
<input type="radio" name="outputType" id="matchRadio" checked > 匹配式
<input type="radio" name="outputType" id="selectRadio"> 查询式
//问题:设置radio选中状态失效
$("#matchRadio").attr('checked');
//解决方案以及原因:
//**如果你的jQuery库的版本是1.6以下的,使用attr方法 如果你的jquery库的版本是1.6(含1.6)以上的,使用prop方法**
$("#matchRadio").prop("checked","checked");