【发布时间】:2012-03-13 07:00:08
【问题描述】:
有 2 个 RadioButtonLists:
Are you a minor?: oYes oNo
Do you wish a joint account?: oYes oNo
如果第一个问题的答案是肯定的,我想检测对第一个问题的回答,并使用 jQuery 函数将第二个问题的答案设置为是。提前致谢。
<asp:Label ID="lblMinfor" CssClass="boldIt" runat="server" Text="Is this account for a minor" Style="float: left; width: 200px;"></asp:Label><br />
<asp:RadioButtonList ID="rdlMinor" runat="server" RepeatDirection="Horizontal" Width="130px" Style="float: left;" BorderStyle="None" RepeatLayout="Flow" ()>
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem Selected="True">No</asp:ListItem>
</asp:RadioButtonList>
<asp:Label ID="lblJoint" CssClass="boldIt" runat="server" Text="Is this for a joint account?" Style="float: left; width: 200px;"></asp:Label><br />
<asp:RadioButtonList ID="rdlJoint" runat="server" RepeatDirection="Horizontal" Width="130px" Style="float: left;" BorderStyle="None" RepeatLayout="Flow">
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem Selected="True">No</asp:ListItem>
</asp:RadioButtonList>
【问题讨论】:
-
你能发布按钮的 HTML 吗?
标签: c# jquery asp.net selecteditem radiobuttonlist