读书人

批改时单选框的自己选择

发布时间: 2012-11-05 09:35:12 作者: rapoo

修改时单选框的自己选择
<td width="15%">
性别:
</td>
<td width="15%">
<input type="radio" name="CEmpSex" value="1" checked="checked" id="sex1">男
<input type="radio" name="CEmpSex" value="0" id="sex0">女
<script type="text/javascript">
document.getElementById("sex${emp.CEmpSex}").checked=true;
</script>
</td>

读书人网 >Web前端

热点推荐