Click here to Skip to main content
15,886,723 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii ,

C#
<link href="../../css/chosen.css" rel="stylesheet" />
<script src="../../js/jquery-1.10.2.js"></script>
<script src="../../js/chosen.jquery.js"></script>


<script type="text/javascript">
    $(document).ready(function () {
        $(".TwoColumn_Form_SelectField").chosen();
        $(".chzn-select-deselect").chosen({ allow_single_deselect: true });
    });
</script>


<div class="TwoColumn_Form_Wrap" id="divCompany" runat="server">
            <div class="TwoColumn_Form_Wrap_Lft">
                Company
            </div>
            <div class="TwoColumn_Form_Wrap_Rht">
                <asp:DropDownList ID="ddlCompany" runat="server" CssClass="TwoColumn_Form_SelectField" AutoPostBack="true"  önSelectedIndexChanged="ddlCompany_SelectedIndexChanged">
                </asp:DropDownList>

            </div>
        </div>



This is my code ..

when i run this it looks perfect in firefox with all fill dropdowns ,
but when i run this same in chrome .. i cant c any value inside dropdown , it slides as blank
Posted
Updated 15-Sep-14 20:10pm
v7
Comments
Kornfeld Eliyahu Peter 16-Sep-14 2:10am    
Did you checked for errors?
Torakami 16-Sep-14 2:19am    
there were no errors , i inspect with firebug and can c elements availble in HTML tags , but its not diplyinh those on screen
Kornfeld Eliyahu Peter 16-Sep-14 3:33am    
I put your code in vs2013 and all browsers (5 of them) gave me the exact same result - an empty dropdown list...
The only difference is that I'm using jQuery 2.1.1...
Torakami 16-Sep-14 7:59am    
I am using js 1.10.2
Kornfeld Eliyahu Peter 16-Sep-14 8:00am    
Try to update...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900