All DropDown

Validate ASP.NET DropDownList using jQuery

In this small post, today I will show you how to validate ASP.NET DropDown List using jQuery. Let's declare a DropDownList. <asp:DropDownList ID="ddlList" runat="server"> <asp:ListItem Text="Select" Value="0" /> <asp:ListItem Text="jQuery" Value="1"></asp:ListItem> <asp:ListItem Text="JavaScript" Value="2"></asp:ListItem> <asp:ListItem Text="Prototype" Value="3"></asp:ListItem> <asp:ListItem Text="Dojo" Value="4"></asp:ListItem> <asp:ListItem Text="Mootools" Value="5"></asp:ListItem> </asp:DropDownList> To validate the dropdown list, all you need to do is […]
Read the rest of this entry »

How to remove/delete selected item from a dropdown using jQuery

In this post, find jQuery code to remove or delete selected item from a dropdown list using jQuery. $(document).ready(function() { $('#btnDelete').click(function() { $('#ddlList option:selected').remove(); }); });? See result below See Complete Code Feel free to contact me for any help related to jQuery, I will gladly help you.
Read the rest of this entry »

Sort Dropdown list items using jQuery

In this post, find out jQuery code to sort dropdown list items. The items can be sorted by item's text or by item's value in ascending or descending order. Related Post: Common Dropdown operation using jQuery How to Reset DropDown using jQuery How to Disable DropDown List Item using jQuery To sort the items, use […]
Read the rest of this entry »

jQuery code to get dropdown values in comma separated list

Yesterday I needed to get all the dropdown values and create a comma separated list. One way to iterate through all dropdown elements and create string. But I found there is another way to achieve this. Use jQuery $.map() which applies a function to each item in an array or object and maps the results […]
Read the rest of this entry »

jQuery and ASP.NET DropDownList

"ASP.NET DropDownList" or "DropDown" or "ComboBox" Or "Select Box" Or "HTML Select Control"..oh!!! One form, many names. Yes, they all are same, just the difference of name. In this post, find list of post related with DropDownList and jQuery. The below list have solution for every common task, problem or issues. So Bookmark it.. You […]
Read the rest of this entry »

How to make multiple select dropdown list using jQuery

In this post, find a jQuery plugin called "Multiple Select" which allows to make/create/convert a simple dropdown list to multiple select/multi-select dropdown. "Multiple Select" is a jQuery plugin to select multiple elements with checkboxes :). Related Post: jQuery and ASP.NET DropDownList How to add images in DropDown List Items using jQuery jQuery to get dropdown […]
Read the rest of this entry »

Responsive Menu
Add more content here...