当前位置:网站首页>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
边栏推荐
- Getting started | jetpack hilt dependency injection framework
- 【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
- Kubernetes cluster log and efk architecture log scheme
- [C语言]给账号密码进行MD5加密
- TCP 三次握手和四次挥手机制,TCP为什么要三次握手和四次挥手,TCP 连接建立失败处理机制
- Kubernetes cluster log and efk architecture log scheme
- 基于can总线的A2L文件解析(2)
- Sous - système I2C (IV): débogage I2C
- [fluent] listview list (map method description of list set | vertical list | horizontal list | code example)
- 超好用的日志库 logzero
猜你喜欢

Segmentation fault occurs during VFORK execution

Creation and destruction of function stack frame

vfork执行时出现Segmentation fault

Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers

What is the way out for children from poor families?
![[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](/img/c3/b9a614001f80345a5c1cb3c68ab27c.jpg)
[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

sql server数据库添加 mdf数据库文件,遇到的报错

SqlServer行转列PIVOT

Check log4j problems using stain analysis

How to change the panet layer in yolov5 to bifpn
随机推荐
Build a private cloud disk cloudrev
Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution
I2C subsystem (IV): I2C debug
一文带你了解 ZigBee
迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
Cancer biopsy instruments and kits - market status and future development trends
Summary of interview project technology stack
Source code analysis | layout file loading process
[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
I2C 子系統(四):I2C debug
Global and Chinese ammonium dimolybdate market in-depth analysis and prospect risk prediction report 2022 Edition
SqlServer行转列PIVOT
Installation and use of memory leak tool VLD
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Getting started | jetpack hilt dependency injection framework
Opengauss database development and debugging tool guide
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc
[error record] the parameter 'can't have a value of' null 'because of its type, but the im
I2C 子系统(二):I3C spec
左值右指解释的比较好的