我有一組表格中顯示的搜索結果。每一行都有一個收音機。一旦用戶選擇了一行,我想從鄰居單元訪問描述文本。如何訪問鄰居表單元格中的文本?
使用jQuery或直接javascript,這樣做的最好方法是什麼?
<tr class="odd">
<td class="chosenCode"><input type="radio" value="123" name="chosenCode"></td>
<td class="codeFound">123</td>
<td class="descriptionFound">This is description text for code 123</td>
</tr>
感謝
大隻是我在找什麼,謝謝! – Chris 2010-09-13 11:34:11