我有一个属于同一组的2个单选按钮。 asp网络单选按钮不是常规的输入类型单选按钮。选中单选按钮会导致在asp.net中启用文本框
如果第一个单选按钮被选中,它旁边的文本框将被启用。否则它将被禁用。 我已经看到了使用JQUERY的输入类型单选按钮。到目前为止我还无法将该代码适用于我的asp.net控件。
我需要它2是JavaScript,而不是在代码后面。
有什么建议吗?
谢谢!
这里是我的代码
<table>
<tr>
<td>
<asp:RadioButton ID="SiteLicenseRBN" runat="server" Checked="True"
GroupName="users" resourcekey="SiteLicenseRBN"
Text="Site License" TextAlign="Left" Font-Bold="True" />
</td>
<td>
<asp:RadioButton ID="ConcUsersRBN" runat="server" GroupName="users"
Text="Conc. Users" TextAlign="Left"
resourcekey="ConcUsersRBN" Font-Bold="True"
/>
<asp:TextBox ID="nuserstbx" runat="server" Enabled="False"
Width="71px"></asp:TextBox>
</td>
</tr>
</table>
如果第二单选按钮被选中(加浓的用户),然后nuserstbx必须启用,否则应禁用。
你需要提供一点您的标记,也许你已经尝试去适应你发现 – 2011-12-29 13:17:40