Home  >  Article  >  Web Front-end  >  javascript multibox select all_form effects

javascript multibox select all_form effects

WBOY
WBOYOriginal
2016-05-16 18:55:05920browse
复制代码 代码如下:

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){}
}

复制代码 代码如下:

(全选)



Statement:
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