Search This Blog

Sunday, April 8, 2012

Convert ASP.NET DropDownList into Multi Select ListBox using jQuery


Convert DropDownList jQuery 
As you can see, to convert the DropDownList to a MultiSelect ListBox control on the click of a Button, we just requires a single line of jQuery code as shown here:
DropDownList To ListBox 
Once the DropDownList is converted into a ListBox control, the user can select multiple items and list them by using the code shown below
Multiple Select DropDown jQuery 
Before the Button is clicked, the output looks like this:
DDL Button Click 
After the Button is clicked, the DropDownList is converted to a Multi Select Listbox as shown below:
MultiSelect DropDownList jQuery 
After the user selects multiple values and clicks the Button, the output changes as shown here:
Select Multiple Items jQuery 

I hope you found this article useful and I thank you for viewing it.

No comments:

Post a Comment