function CheckAll()
{
var a = document.getElementsByTagName("input");
for (var i=0; i
{
a[i].checked =true;
}
}
/*反选*/
function NoCheckAll()
{
var a = document.getElementsByTagName("input");
for (var i=0; i
{
a[i].checked =false;
}
}
/*验证选择个数*/
function CheckIsSelect(objGrid)
{
//检测是否有选择多选框的至少一项
chs = document.getElementById(objGrid).getElementsByTagName("input");
n = 0;
for( i = 0; i
if(chs[i].checked)
{
n++;
}
}
if( n == 0 )
{
alert("至少选择一项!");
return false;
}
return true;
}
改改这个JS就行了