1.获取dropdownlist选中的值
Code
$('#ddlCustomerType option:selected').val()
//html:
<asp:DropDownList ID="ddlCustomerType" runat="server" >
<asp:ListItem Text="代理商" Value="1"></asp:ListItem>
<asp:ListItem Text="加盟店" Value="2"></asp:ListItem>
<asp:ListItem Text="公司团体" Value="3"></asp:ListItem>
<asp:ListItem Text="电子商务" Value="4"></asp:ListItem>
</asp:DropDownList>
2. 获取radioboxlist选中的值$('#ddlCustomerType option:selected').val()
//html:
<asp:DropDownList ID="ddlCustomerType" runat="server" >
<asp:ListItem Text="代理商" Value="1"></asp:ListItem>
<asp:ListItem Text="加盟店" Value="2"></asp:ListItem>
<asp:ListItem Text="公司团体" Value="3"></asp:ListItem>
<asp:ListItem Text="电子商务" Value="4"></asp:ListItem>
</asp:DropDownList>
Code
$("input[name='rblType']:checked").val()
<asp:RadioButtonList ID="rblType" runat="server" >
<asp:ListItem Text="直客" Value="1" Selected="True"></asp:ListItem>
<asp:ListItem Text="同业" Value="2"></asp:ListItem>
</asp:RadioButtonList>
$("input[name='rblType']:checked").val()
<asp:RadioButtonList ID="rblType" runat="server" >
<asp:ListItem Text="直客" Value="1" Selected="True"></asp:ListItem>
<asp:ListItem Text="同业" Value="2"></asp:ListItem>
</asp:RadioButtonList>