得到radiobuttonlist 选中值:
var CheckBoxList=document.all.optButtonList;
var objCheckBox,CheckValue="";
for(i=0;i<CheckBoxList.rows.length;i++)
{
objCheckBox = document.getElementById('optButtonList'+ "_" + i);
if(objCheckBox.checked == true)
{
CheckValue = objCheckBox.value;
}
}
if(CheckValue!="")
{
alert(CheckValue) ; }
得到 CheckBoxList 选中值
var CheckBoxList=document.all.checkList;
var objCheckBox,CheckValue="";
for(i=0;i<CheckBoxList.rows.length;i++)
{
objCheckBox = document.getElementById("checkList_" + i);
if(objCheckBox.checked == true)
{
CheckValue += CheckBoxList.rows[i].cells[0].childNodes(1).innerText + ",";
}
}
if(CheckValue!="")
{
alert(CheckValue);
}
var CheckBoxList=document.all.optButtonList;
var objCheckBox,CheckValue="";
for(i=0;i<CheckBoxList.rows.length;i++)
{
objCheckBox = document.getElementById('optButtonList'+ "_" + i);
if(objCheckBox.checked == true)
{
CheckValue = objCheckBox.value;
}
}
if(CheckValue!="")
{
alert(CheckValue) ; }
得到 CheckBoxList 选中值
var CheckBoxList=document.all.checkList;
var objCheckBox,CheckValue="";
for(i=0;i<CheckBoxList.rows.length;i++)
{
objCheckBox = document.getElementById("checkList_" + i);
if(objCheckBox.checked == true)
{
CheckValue += CheckBoxList.rows[i].cells[0].childNodes(1).innerText + ",";
}
}
if(CheckValue!="")
{
alert(CheckValue);
}
质问微软 WP8.1开发HTTPS 真费劲
WebService 页面重定向错误
Oracle 错误 maximum number of processes(150) exceeded 解决办法
spring quartz定时任务 配置
centos 7安装完后出现please make your choice from '1' to e
centos单机安装Hadoop2.6
centos 关闭防火墙
CentOS 7 系统下安装gnome图形界面
CentOS 7 ifconfig: command not found