得到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);
}
上周热点回顾(4.8-4.14)团队
上周热点回顾(4.1-4.7)团队
【故障公告】阿里云抢占式实例服务器被自动释放引发的故障团队
上周热点回顾(3.25-3.31)团队
上周热点回顾(3.18-3.24)团队
上周热点回顾(3.11-3.17)团队
博客园 .NET Core 线下技术交流会 -- 上海站团队
分区助手是什么?(博主推荐)(图文详解)
IDEA里点击Build,再Build Artifacts没反应,灰色的?解决办法(图文详解)