<form name="Form1" method="post" action="GetPropertyNo.aspx" id="Form1">
<table ><tr><td><table id="RadioButtonList1" border="0">
<tr>
<td><input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="001" /><label for="RadioButtonList1_0">集体</label></td>
</tr><tr>
<td><input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" value="002" /><label for="RadioButtonList1_1">股份制</label></td>
</tr>
</table></td></tr></table>
<INPUT TYPE="button" class="MyButton" value="确定" onclick="fnGetInfo();" <INPUT TYPE="button" value="取消" onclick="fnCancel();">
</form> <SCRIPT>
function CheckBox(CheckBoxSet)
{
var str;
str='';
for(i=0;CheckBoxSet.length-1;i++)
{
if(CheckBoxSet(i).checked)
{
str=CheckBoxSet(i).value
}
//str=CheckBoxSet.value;
}
return str;
}
</SCRIPT>上述调用 CheckBox(document.Form1.RadioButtonList1) 为何得不到 所选的值?
<table ><tr><td><table id="RadioButtonList1" border="0">
<tr>
<td><input id="RadioButtonList1_0" type="radio" name="RadioButtonList1" value="001" /><label for="RadioButtonList1_0">集体</label></td>
</tr><tr>
<td><input id="RadioButtonList1_1" type="radio" name="RadioButtonList1" value="002" /><label for="RadioButtonList1_1">股份制</label></td>
</tr>
</table></td></tr></table>
<INPUT TYPE="button" class="MyButton" value="确定" onclick="fnGetInfo();" <INPUT TYPE="button" value="取消" onclick="fnCancel();">
</form> <SCRIPT>
function CheckBox(CheckBoxSet)
{
var str;
str='';
for(i=0;CheckBoxSet.length-1;i++)
{
if(CheckBoxSet(i).checked)
{
str=CheckBoxSet(i).value
}
//str=CheckBoxSet.value;
}
return str;
}
</SCRIPT>上述调用 CheckBox(document.Form1.RadioButtonList1) 为何得不到 所选的值?
解决方案 »
- UpdatePanel 分页失效
- 谁的伪静态用的比较熟啊,请教一个有关伪静态的问题?
- CheckBox全选与反选,用JS实现
- 大家看看这是如何实现的?
- 问个功能的实现===========
- VS2005中如何实现“网站--asp.net配置”的功能
- 问题:当点击GridView中的[编辑]里的图标时,整个页面向显示器的(0,0)处移动大概2PX,这是为什么,我不希望页面移动,怎么办?
- web应用程序发布的时候如何将前台代码编译在DLL里面
- 不知道前台的JavaScript可不可以去调用后台的方法呢?????????????高手帮忙!!!!!
- asp转asp.net大家提点建议,要看什么书呢?
- go go go down水晶报表11
- 时间的搜索问题
{
var str;
str='';
var obj=document.getElementsByName("RadioButtonList1");
for(i=0;i<obj.length;i++)
{
if(obj[i].checked)
{
str=obj[i].value;
}
//str=CheckBoxSet.value;
}
return str;
}