waj952737 发表于 2013-1-29 09:30:57

javascript删除

function DelTeam(){

var gids = document.select.gids;
var num = 0;

if(typeof(gids.length) == "undefined"){
if(document.select.gids.checked){
num ++;
}
}else{
for(var i = 0; i < gids.length;i++){
if(gids.checked){
num++;
}
}
}


if(num == 0){
alert("请选择要删除的组!");
return false;
}else{
if(confirm("确定要删除这" + num + "条记录吗")){
return true;
}else{
return false;
}
}

}
<s:form name="select" action="DelTeamAction" method="post"
theme="simple" >
页: [1]
查看完整版本: javascript删除