<body>
<script>
function checkAll()
{
var obj_all = document.getElementsByTagName("INPUT");

for(i=0;i<obj_all.length;i++)
if(obj_all[i].type=="checkbox")
obj_all[i].checked = true;
}
</script>
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">
<input type="button" onclick="checkAll()" value="看着啦">
</body>

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2021-05-17
  • 2021-11-13
  • 2021-05-06
  • 2021-12-03
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2021-07-15
  • 2021-06-20
  • 2021-07-08
  • 2021-09-21
  • 2021-11-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案