Home > Web Front-end > JS Tutorial > javascript multibox select all_form effects

javascript multibox select all_form effects

WBOY
Release: 2016-05-16 18:55:05
Original
947 people have browsed it
复制代码 代码如下:

function allselect()
{
try{
var checkedcount=0;
for(var i=0;i{
if(form1.orgIds[i].checked)
checkedcount ;
}

if(checkedcount==form1.orgIds.length)
{
for(var i=0;i{
form1.orgIds[i].checked=false;
}
}
else
{
for(var i=0;i{
form1.orgIds[i].checked=true;
}
}
if(form1.orgIds.checked==true)
form1.orgIds.checked=false;
else
form1.orgIds.checked=true;
}catch(ex){}
}

复制代码 代码如下:

(全选)



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template