TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get Length of Dropdownlist in ASP.NET using JQuery
Mukesh Kumar
Oct 03
2015
Code
3.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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
>
JQuery
var
items
= $("#DropDownList1 option").length;
asp.net
JQuery
Dropdownlist