5 <meta http-equiv="X-UA-Compatible" content="chrome=1">
6 <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
7 <link rel="stylesheet" href="../../css/drop.css" />
8 <link rel="stylesheet" href="../resources/css/base.css" />
9 <link rel="stylesheet" href="chosen.css" />
32 Favorite pizza style: <br/>
33 <div class="drop-chosen-target chosen-container chosen-container-single chosen-with-drop" style="width: 350px">
34 <a class="chosen-single chosen-default" tabindex="-1"><span>Choose a style...</span><div><b></b></div></a>
48 <script src="../resources/js/log.js"></script>
49 <script src="../resources/js/jquery.js"></script>
50 <script src="chosen.js"></script>
51 <script src="../../drop.js"></script>
56 $target = $('.drop-chosen-target').drop({
57 className: 'drop-chosen',
58 attach: 'bottom-left',
62 $drop = $target.data().drop.$drop;
64 $drop.append('<select><option>Plain</option><option>Pepperoni</option><option>Supreme</option></select>');
66 $drop.on('openDrop', function(event){
67 $target.addClass('chosen-container-active');
68 }).on('closeDrop', function(event){
69 $target.removeClass('chosen-container-active');
72 $drop.on('openDrop', function(event) {
73 var $select = $drop.find('select');
75 if (!$drop.find('.chosen-container').length) {
77 .css('width', $target.outerWidth())
79 allow_single_deselect: true,
80 disable_search_threshold: 0
85 setTimeout(function(){
86 $drop.find('.chosen-search input').click().focus().keyup();
87 $target.drop('positionDrop');
93 .drop-chosen-target > a {
98 background: transparent;
101 .drop.drop-chosen .chosen-container > .chosen-single {
105 .drop.drop-chosen .chosen-container .chosen-drop {