<head>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function check(field,checkflag) {
if (checkflag == 1) {
 for (i = 0; i < field.length; i++) {
 field[i].checked = true;
 }
}
else{
 for (i = 0; i < field.length; i++) {
 field[i].checked = false; }
 }
}
//  End -->
</script>
</head>

<body>
<form name="form" method="post" action="">

<input type="checkbox" name="list" value="1">

<input type="checkbox" name="list" value="2">

<input type="checkbox" name="list" value="3">


<input type=button value="全选" onClick="check(this.form.list,1)">
<input type=button value="取消全选" onClick="check(this.form.list,0)">
</body>

相关文章:

  • 2022-12-23
  • 2021-05-24
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-12-27
猜你喜欢
  • 2021-05-24
  • 2021-12-17
  • 2022-12-23
  • 2022-01-25
  • 2022-01-24
  • 2022-12-23
相关资源
相似解决方案