很简单的脚本操作
<script language="javascript">
//复选框去不选中方法
function selectAll(name,state)
{
var ids = document.getElementsByName(name);
for (var i = 0; i < ids.length; i++)
{
ids[i].checked = state;
}
}
//获取复选框中的值 并将其值链接起来
function search()
{
var str= "";
var obj=document.getElementsByName("checkbox");
for(var i=0;i <obj.length;i++)
{
if(obj[i].checked)
{
str+=obj[i].value+";";
}
}
return str;
}
</script>