<div class="mui-table-cell mui-col-xs-6"> <div class="mui-input-row mui-radio mui-left"> <label>有效</label> <input name="rdJdzt" type="radio" value="1" checked /> </div> </div> <div class="mui-table-cell mui-col-xs-6"> <div class="mui-input-row mui-radio mui-left"> <label>无效</label> <input name="rdJdzt" type="radio" value="0" /> </div> </div>
获取单选框的值:
$("input[name='rdJdzt']:checked").val()
设置单选框的值:
$("input[name='rdJdzt']").removeAttr("checked");
$("input[name='rdJdzt'][value='"+data.zt+"']").attr("checked",true);