【发布时间】:2012-02-13 22:23:04
【问题描述】:
我在一页上有 3 个表格。它们每个都包含两个表格行。
第一个 <tr> 包含一个 RadioButton。第二个<tr> 设置为显示:无。我需要第二个 <tr> 来显示该特定表中的 RadioButton 何时被选中。
我的 HTML:
<table class="tableClass" style="width: 98%">
<tr>
<td>
<input type="radio" id="rbResource" onclick="radio_Click()" class="radioButton" runat="server" />
</td>
</tr>
<tr class="displaySelection" style="display: none">
<td>
<span>Test</span>
</td>
</tr>
</table>
我不确定如何在radio_Click() 函数中形成我的jQuery 以获得我正在寻找的东西。到目前为止,我尝试过的所有内容都会显示每个表的所有三个 <tr>,无论选择了哪个 Radiobutton。
【问题讨论】:
标签: jquery asp.net html-table tablerow