jQuery给单选框默认选中方式

来源:互联网 发布:linux 查看硬件命令 编辑:程序博客网 时间:2024/06/06 10:38
if (msg[0]["ACTIVE_STATE"] == 'Y') {
$("input[name='state']").get(0).checked = true;
} else {
$("input[name='state']").get(1).checked = true;
}
0 0
原创粉丝点击