|
function deleinfo()
{
var aa = document.getElementsByName("sel");------------------------全选的checkbox
var bb="";
var num=0;
if(document.getElementById("selc").checked==true)
{
for(var i =0;i<aa.length;i++)
{
if(aa[i].checked==true)
{
bb=bb+aa[i].value+","
}
}
cc =bb.length-1;
cc=bb.substring(0,cc);
document.write(cc);
//location.+cc;
}
else
{
for(var i =0;i<aa.length;i++)
{
if(aa[i].checked==true)
{
bb=bb+aa[i].value+","
num++;
}
}
//alert(num);
if(num==0)
{
alert("还未勾选记录!!!");
}
else
{
cc =bb.length-1;
cc=bb.substring(0,cc);
document.write(cc);
//location.+cc;
}
}
}