checkbox多选框取值
来源:互联网 发布:mac给iphone充电好吗 编辑:程序博客网 时间:2024/05/21 12:10
脚本判断:
function SelectUserSub(){
var k=0;
choose=document.form1;
chang=choose.CheckMeet.length;
for (var i=0; i<chang;i++){
if (choose.CheckMeet[i].checked==false)
continue;
else
k+=1;
}
if (k==0){
alert("您还没有选择要删除的申请信息/r请您选择要删除的申请信息");
return false;
}
else{if(confirm("你真的要删除所选择的会议申请信息吗?")){
document.form1.action ="MeetingView.asp?del=1";
document.form1.target ="_self"
document.form1.submit() ;
return true;
}else{
return false;
}
}
}
从“checkbox”中分别取出值:
<form name="form1" action="另一页面" method="post">
<input name="xuanze" type="checkbox" id="xuanze" value="checkbox1" />
<input name="xuanze" type="checkbox" id="xuanze" value="checkbox2" />
<input name="xuanze" type="checkbox" id="xuanze" value="checkbox3" />
</form>
另一页面里的代码:
<%
'response.Write(request.Form("xuanze")&"<br>")
xuanze=request.Form("xuanze")
shuzu=split(xuanze,",",-1)
up=ubound(shuzu)'取数组的上限
down=lbound(shuzu)'取数组的下限
changdu=ubound(shuzu)-lbound(shuzu)'取数组的长度
for i=down to up
response.Write(shuzu(i)&"<br>") '读取数组里的每个元素的值
next
%>
- checkbox多选框取值
- checkbox
- checkbox
- CheckBox
- CheckBox
- checkbox
- checkbox
- checkbox
- checkbox
- checkbox
- Checkbox
- checkbox
- checkbox
- checkbox
- checkbox
- checkBox
- checkbox
- checkbox
- 父亲节的由来
- 4909上的ACL
- 全面分析Java的垃圾回收机制
- 读书时间 (1) 正在流行中的书
- 两件事/黄牌/讲正气树新风领导谈话
- checkbox多选框取值
- E-mail校验
- Sql group by 用法
- HTTP请求/响应分析
- sql中的case when 语句详解
- 设置多页表头
- baiduspider常见问题解答
- sql中的iif语句详解
- 表单判断