ASP.NET dropdown
<asp:DropDownList ID="DropDownList1" runat="server" >
<asp:ListItem Value="1">Germany</asp:ListItem>
<asp:ListItem Value="2">France</asp:ListItem>
<asp:ListItem Value="3">Brazil</asp:ListItem>
</asp:DropDownList>JQueryvar items = $("#DropDownList1 option").length;