当前位置:网站首页>Use of check boxes: select all, deselect all, and select some
Use of check boxes: select all, deselect all, and select some
2022-07-03 02:57:00 【A stream kite CD】
function ck(n){
// Get all checkboxes
var cks = document.getElementsByName("checkbox");
// Get the checkbox with all selected
var ckz=document.getElementById("checkboxs");
var m = 0;// Calculate the number of checked products
if (n!=-1) {
// Determine whether it is the select all button
ckz.checked=false;// Not the select all button , The button is set to false
for (var i = 0; i < cks.length; i++) {
if (cks[i].checked) {
m++;
}
}
if (m==cks.length){
ckz.checked=true;
}
}else {
for (var i = 0; i < cks.length; i++) {
cks[i].checked = ckz.checked;
m++;
}
}
}
n The mark is used to distinguish whether the check box is selected all , A check box
边栏推荐
- Informatics Olympiad one general question bank 1006 a+b questions
- Matlab tips (24) RBF, GRNN, PNN neural network
- HW-初始准备
- Three. JS local environment setup
- yii2 中andWhere多个or查询 orm条件
- Build a private cloud disk cloudrev
- 你真的懂继电器吗?
- tensor中的append应该如何实现
- Apple releases MacOS 11.6.4 update: mainly security fixes
- 用docker 連接mysql的過程
猜你喜欢

Build a private cloud disk cloudrev

Kubernetes cluster log and efk architecture log scheme

基于can总线的A2L文件解析(2)

分布式事务

random shuffle注意

Can netstat still play like this?

Pytest (6) -fixture (Firmware)

I2C subsystem (II): I3C spec

迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常

Add MDF database file to SQL Server database, and the error is reported
随机推荐
Practice of traffic recording and playback in vivo
Pytest (6) -fixture (Firmware)
The process of connecting MySQL with docker
Strategy application of Dameng database
Add some hard dishes to the interview: how to improve throughput and timeliness in delayed task scenarios!
Introduction to cron expression
C语言中左值和右值的区别
vfork执行时出现Segmentation fault
Getting started | jetpack hilt dependency injection framework
TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
[fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
Source code analysis | layout file loading process
tensorflow转pytorch笔记;tf.gather_nd(x,y)转pytorch
当lambda没有输入时,是何含义?
From C to capable -- use the pointer as a function parameter to find out whether the string is a palindrome character
[shutter] monitor the transparency gradient of the scrolling action control component (remove the blank of the top status bar | frame layout component | transparency component | monitor the scrolling
Pytest (6) -fixture (Firmware)
C language beginner level - pointer explanation - paoding jieniu chapter
SQL server queries the table structure of the specified table
Add automatic model generation function to hade