日期:2014-05-16 浏览次数:20404 次
<head runat="server">
<title></title>
<script src="../js/jquery-1.10.2.js" type="text/javascript"></script>
<script type="text/javascript">
function addCheck() {
$("#CheckBox1").attr("checked", true);
}
function removeClick() {
$("#CheckBox1").attr("checked", false);
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input type="checkbox" id="CheckBox1" />
<input type="button" value="add" onclick="addCheck()" />
<input type="button" value="remove" onclick="removeClick()" />
</div>
</form>
</body>