function checkit()
{
var rbltable = document.getElementById("RadioButtonList1");
var rbl= rbltable.getElementsByTagName("INPUT");
for(var i = 0;i<rbl.length;i++)
{
if(rbl[i].checked)
{
var text =rbltable.cells[i].innerText;
var value=rbs[i].value;
alert("选中项的text值为"+text+",value值为"+value);
}
}
}













打开查看源文件,可以看到RadioButtonList在客户端被解析成了table,通过getElementsByTagName("INPUT")方法获取它的所有子radio,然后循环每个radio,再通过cells获取radio的text值。
来源: http://blog.youkuaiyun.com/codingtaoist/archive/2007/03/29/1545678.aspx