当前位置:网站首页>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
边栏推荐
- [translation] flux is safe. Gain more confidence through fuzzy processing
- Random Shuffle attention
- [fluent] JSON model conversion (JSON serialization tool | JSON manual serialization | writing dart model classes according to JSON | online automatic conversion of dart classes according to JSON)
- yii2 中andWhere多个or查询 orm条件
- [fluent] listview list (map method description of list set | vertical list | horizontal list | code example)
- Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
- tensor中的append应该如何实现
- [Fuhan 6630 encodes and stores videos, and uses RTSP server and timestamp synchronization to realize VLC viewing videos]
- Pytest (6) -fixture (Firmware)
- 函数栈帧的创建与销毁
猜你喜欢

Privatization lightweight continuous integration deployment scheme -- 01 environment configuration (Part 2)

Sqlserver row to column pivot

Random Shuffle attention

From C to capable -- use the pointer as a function parameter to find out whether the string is a palindrome character

Kubernetes family container housekeeper pod online Q & A?

Choose it when you decide

Random shuffle note

Kubernetes family container housekeeper pod online Q & A?

vfork执行时出现Segmentation fault

I2C 子系统(四):I2C debug
随机推荐
2022-2028 global splicing display industry research and trend analysis report
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
用docker 連接mysql的過程
Getting started | jetpack hilt dependency injection framework
Summary of interview project technology stack
Three.js本地环境搭建
C language beginner level - pointer explanation - paoding jieniu chapter
Process the dataset and use labelencoder to convert all IDs to start from 0
函数栈帧的创建与销毁
Reset or clear NET MemoryStream - Reset or Clear . NET MemoryStream
Check log4j problems using stain analysis
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
sql server 查詢指定錶的錶結構
Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
Joking about Domain Driven Design (III) -- Dilemma
Xiaodi notes
[fluent] JSON model conversion (JSON serialization tool | JSON manual serialization | writing dart model classes according to JSON | online automatic conversion of dart classes according to JSON)
How to implement append in tensor
yii2 中andWhere多个or查询 orm条件
docker安装redis