Chosen.jquery.js incompatible jquery-1.9.1

0

I'm using Jquery-.1.9.1 in my application and would like to use the chosen.jquery.js component however this component uses 1.6.4. I want to use this component inside the dialog which is opened by jquery 1.9.1. I tried using noConflict but it did not work.

 $(document).ready(function() {
                    $(".chosen-select").chosen();
});
z<html>
<body>
    <head>
        <title>Add a title</title>
        <link rel="stylesheet" href="~/Content/chosen.css">
    </head>
    <body>
        <select class="chosen-select" tabindex="8" multiple style="width:350px;" data-placeholder="Your Favorite Types of Bear">
            <option value=""></option>
            <option>American Black Bear</option>
            <option>Asiatic Black Bear</option>
            <option>Brown Bear</option>
            <option>Giant Panda</option>
            <option selected>Sloth Bear</option>
            <option disabled>Sun Bear</option>
            <option>Polar Bear</option>
            <option disabled>Spectacled Bear</option>
        </select>
      


        <script src="~/Content/jquery-1.9.1.js"></script>
    <script src="~/Content/chosen.jquery.js"></script>
        
        <script>
               
        </script>
    </body>
    </html>
    
asked by anonymous 21.10.2016 / 21:32

1 answer

0

The problem is related to the jquery ui dialong that does not work with chonsen.jquery.

link

    
21.10.2016 / 22:14