WEB网站涉及的jquery

来源:互联网 发布:五轴加工中心编程难吗 编辑:程序博客网 时间:2024/04/27 22:58
1.设置radio选中
$("input[name=test][value=0]").attr("checked",true);//value=0的radio被选中
$("input[id=testid][value=0]").attr("checked",true);//value=0的radio被选中
$("input[name='books']").get(0).checked = true;
原创粉丝点击