1、服务端控件RadioButton

<asp:RadioButton ID="rbNewUser" runat="server" GroupName="user" Text="新用户注册"  />
<asp:RadioButton ID="rbExistUser" runat="server" GroupName="user" Text="已有用户注册"/>

选择选中的文本

var registType = $j("input[type='radio']:checked").next().text();

 2、服务端控件RadioButton另一种获取选中的值

 <asp:RadioButtonList ID="rb_IsPublicPlan" runat="server"
                            RepeatColumns="5" RepeatDirection="Horizontal" RepeatLayout="Flow" CssClass="formradio">
                            <asp:ListItem Value="0">不公示</asp:ListItem>
                            <asp:ListItem Value="1">公示</asp:ListItem>
                        </asp:RadioButtonList>

选择选中的文本

$('#<%=rb_IsPublicPlan.ClientID%>').find('input:checked').val();

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-07-23
  • 2021-12-24
相关资源
相似解决方案