不知道是不是这个意思:<script language="javascript">
function tt(v)
{
var t=v;
var v1="document.all.t"+t+".value";
v1=eval(v1);
alert("value of t" + t + ":" + v1);
var v2="document.all.xt"+t+".value";
v2=eval(v2);
alert("value of xt" + t + ":" + v2);
}
</script><table>
<%for i=1 to 10%>
<tr><td>
<input type="radio" name="rd" value="<%=i%>" onclick="tt(this.value)">
<input type="text" name="t<%=i%>" value="<%=i*100%>">
<input type="text" name="xt<%=i%>" value="<%=i*200%>">
</td></tr>
<%next%>
</table>
function tt(v)
{
var t=v;
var v1="document.all.t"+t+".value";
v1=eval(v1);
alert("value of t" + t + ":" + v1);
var v2="document.all.xt"+t+".value";
v2=eval(v2);
alert("value of xt" + t + ":" + v2);
}
</script><table>
<%for i=1 to 10%>
<tr><td>
<input type="radio" name="rd" value="<%=i%>" onclick="tt(this.value)">
<input type="text" name="t<%=i%>" value="<%=i*100%>">
<input type="text" name="xt<%=i%>" value="<%=i*200%>">
</td></tr>
<%next%>
</table>
例
<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1 width=50%>
<TR>
<TD><INPUT type="radio" id=radio1 name=radio1 onclick="gettd(this)"></TD>
<TD>2</TD>
<TD>3</TD>
</TR>
<TR>
<TD><INPUT type="radio" id=radio2 name=radio2 onclick="gettd(this)"></TD>
<TD>5</TD>
<TD>6</TD>
</TR>
<TR>
<TD><INPUT type="radio" id=radio3 name=radio3 onclick="gettd(this)"></TD>
<TD>8</TD>
<TD>9</TD>
</TR>
</TABLE>
<SCRIPT LANGUAGE=javascript>
<!--
function gettd(oradio){
orowcells=oradio.parentElement.parentElement.cells;//取得radion所在的行的单元格集合
for(var i=1;i<orowcells.length;i++){//遍历集合
alert(orowcells[i].innerText)
}
}
//-->
</SCRIPT>
循环就可以了。