In this post, I will show you how can you get the selected value and selected text of ASP.NET Dropdown using jQuery. Let's first declare the dropdown list and a button. <asp:DropDownList ID="ddlLanguage" runat="server"> <asp:ListItem Text="Select" Value="0"></asp:ListItem> <asp:ListItem Text="C#" Value="1"></asp:ListItem> <asp:ListItem Text="VB.NET" Value="2"></asp:ListItem> <asp:ListItem Text="Java" Value="3"></asp:ListItem> <asp:ListItem Text="PHP" Value="4"></asp:ListItem> </asp:DropDownList> <asp:Button ID="btnGetValue" runat="server" Text="Get DropDown […]
Comments Off on Get ASP.NET Dropdown selected value and text using jQuery