for(int i=0;i<num;i++)
{
<input type="checkbox" name="appid" value= <%=appinfo.getContentId()%>>
}function doDel()
{
var len = document.frmSoftware.appid.length;
for(var i =0;i<len;i++)
{
if(document.frmSoftware.appid[i].checked == true)
{
if(confirm("Are you sure to delete ?"))
{
document.frmSoftware.action = "promodel.jsp";
document.frmSoftware.submit();
}
return;
}
}
}
下面的一个function就是对有关这个复选框的处理,传递到下一个页面通过,
String[] appid = request.getParameterValues("appid");
for(int index = 0; index < appid.length; index++)
{
System.out.println(appid[index]);
}就可以得到你的选择了,你 要怎么处理都可以那!
{
<input type="checkbox" name="appid" value= <%=appinfo.getContentId()%>>
}function doDel()
{
var len = document.frmSoftware.appid.length;
for(var i =0;i<len;i++)
{
if(document.frmSoftware.appid[i].checked == true)
{
if(confirm("Are you sure to delete ?"))
{
document.frmSoftware.action = "promodel.jsp";
document.frmSoftware.submit();
}
return;
}
}
}
下面的一个function就是对有关这个复选框的处理,传递到下一个页面通过,
String[] appid = request.getParameterValues("appid");
for(int index = 0; index < appid.length; index++)
{
System.out.println(appid[index]);
}就可以得到你的选择了,你 要怎么处理都可以那!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货