<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>无标题文档</title>

<script

function selected() {   

var allsel=document.getElementsByName("car");   

for(var i=0;i<allsel.length;i++)   

{    allsel[i].checked=!allsel[i].checked;    }

}

</script>

</head>
<body>

<h1>全选/全不选</h1> 全选/取消<br />

<input type="checkbox" > <br/>

<input type="checkbox" >aa<br/>

<input type="checkbox" >cc<br/> </body> </html>

相关文章:

  • 2022-12-23
  • 2022-01-10
  • 2021-11-28
  • 2021-10-29
  • 2021-04-11
  • 2022-01-22
  • 2021-07-04
  • 2022-12-23
猜你喜欢
  • 2021-07-08
  • 2021-12-17
  • 2022-12-23
  • 2021-09-15
  • 2022-02-10
  • 2021-07-23
  • 2021-08-08
相关资源
相似解决方案