js获取DropDownList的选择项

<asp:DropDownList ID="ddlProgramCategory" runat="server">
    
<asp:ListItem Value="0">--类型--</asp:ListItem>
    
<asp:ListItem Value="1">台宣</asp:ListItem>
    
<asp:ListItem Value="2">广告</asp:ListItem>
    
<asp:ListItem Value="3">音乐</asp:ListItem>
</asp:DropDownList>

var ddlProgramCategory = $('<%=ddlProgramCategory.ClientID %>');
var categoryID = ddlProgramCategory.options[ddlProgramCategory.selectedIndex].value;

原文地址:https://www.cnblogs.com/wf225/p/939701.html