Asp DropDownListChosen does not show any items in the dropdown menu

I have currently added the selected jquery plugin to my asp project via nuget.

Install-Package DropDownListChosen 

then on one of the aspx pages I used a dropdown like

 // asp conent page <asp:DropDownListChosen ID="listBoxAddress" runat="server" NoResultsText="No results match." Width="350px" DataPlaceHolder="Type Here..." AllowSingleDeselect="true"> </asp:DropDownListChosen> // code behind public void GetAddress() { try { DataTable dt = new DataTable(); listBoxAddress.ClearSelection(); listBoxAddress.Items.Clear(); DAL_Customer_Registration objDAL = new DAL_Customer_Registration(); dt = objDAL.Get_Address(); foreach (DataRow row in dt.Rows) { listBoxAddress.Items.Add(new ListItem(row["ADDRESS"].ToString(), row["ID"].ToString())); } } catch (Exception) { } } 

On my main page I added .css of the selected plugin

 <link rel="stylesheet" media="screen,projection" type="text/css" href="~/chosen.css" /> 

But still the items in the drop-down list are not displayed. Why is this so? What is wrong with my process? What other links should be added to the main page or asp content page? As I said, I already installed the jquery dependency files, still getting an error like " Uncaught TypeError: this.container.find(...).first is not a function " in the selected.jquery.js file.

Is there an error with my code? Please suggest possible solutions. Thanks!!!

+3
jquery css jquery-chosen
source share

No one has answered this question yet.

See similar questions:

7
Does jQuery's chosen dropdownlists plugin look weird?

or similar:

2628
How to insert an element into an array at a specific index (JavaScript)?
2311
I need an unordered list without any bullets
1839
Hand cursor when user hovers over list item
1235
How do I style a <select> drop-down list with CSS only?
1135
How to make Twitter Bootstrap popup menu, not click
1017
jQuery Get selected option from drop-down list
108
How to move a child from one parent to another using jQuery
2
How to go to a page containing a specific piece of data
one
Change Chosen.js CSS with jQuery
0
Selected jquery plugin shows internal frame

All Articles