我在下面有这个 div,在选择CFGID
单选按钮时,我应该能够获得相同的行值。例如testDev
:indi
等值
<div id="updateFormDiv">
<table class="tableForms">
<tbody>
<tr>
<th class="tableHeading"></th>
<th class="tableHeading">Name</th>
<th class="tableHeading">Host Name</th>
<th class="tableHeading">Description</th>
<th class="tableHeading">Type</th>
<th class="tableHeading">Last Update Time</th>
</tr>
<tr>
<td><input type="radio" name="CFGID" id="CFGID" value="11579"></input></td>
<td>testDev</td>
<td>indi</td>
<td>testDev</td>
<td>Development</td>
<td>Fri Apr 26 04:31:40 IST 2012</td>
</tr>
</tbody>
</table>
</div>
所以在按钮点击我写了这个
alert($("input[name='CFGID']:checked").next().text());
但它让我空虚。请帮我获取每个值。谢谢