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;

posted @ 2007-10-27 16:32  无锋不起浪  阅读(1256)  评论(0编辑  收藏  举报