当前位置:网站首页>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
边栏推荐
- Classes and objects - initialization and cleanup of objects - constructor call rules
- How to change the panet layer in yolov5 to bifpn
- Are there any recommended term life insurance products? I want to buy a term life insurance.
- 你真的懂继电器吗?
- Segmentation fault occurs during VFORK execution
- Today, it's time to copy the bottom!
- vfork执行时出现Segmentation fault
- 【富瀚6630编码存录像,用rtsp服务器及时间戳同步实现vlc观看录像】
- 二维格式数组格式索引下标连续问题导致 返回json 格式问题
- 用docker 連接mysql的過程
猜你喜欢

Can netstat still play like this?

用docker 連接mysql的過程

xiaodi-笔记

What is the way out for children from poor families?

Random Shuffle attention

一文带你了解 ZigBee

Check log4j problems using stain analysis
![[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)](/img/e5/c01f760b07b495f5b048ea367e0c21.gif)
[fluent] listview list (map method description of list set | vertical list | horizontal list | code example)

Sqlserver row to column pivot

The process of connecting MySQL with docker
随机推荐
Counter统计数量后,如何返回有序的key
Baidu map - surrounding search
迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
How to return ordered keys after counter counts the quantity
Creation and destruction of function stack frame
Notifydatasetchanged not applicable to recyclerview - notifydatasetchanged not working on recyclerview
Source code analysis | layout file loading process
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
Add automatic model generation function to hade
The left value and the right finger explain better
Today, it's time to copy the bottom!
[leectode 2022.2.15] lucky numbers in the matrix
sql server 查询指定表的表结构
How to use asp Net MVC identity 2 change password authentication- How To Change Password Validation in ASP. Net MVC Identity 2?
2022-2028 global splicing display industry research and trend analysis report
Random Shuffle attention
Unity3d human skin real time rendering real simulated human skin real time rendering "suggestions collection"
Variable declarations following if statements
Yiwen takes you to know ZigBee
[translation] the background project has joined the CNCF incubator