hanno 2 RadioButtonLists:ASP.Net RadioButtonList: utilizzando jQuery per ottenere il ListItem selezionato
Are you a minor?: oYes oNo
Do you wish a joint account?: oYes oNo
Se la risposta alla prima domanda è sì, voglio rilevare la risposta alla prima domanda e impostare la risposta alla seconda domanda a si usando una funzione jQuery. Grazie in anticipo.
<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>
potete inserire il codice HTML per i pulsanti? – JaredPar
Ho pubblicato il codice. – Susan