title: Uncaught TypeError: Cannot set property 'selected' of undefined
body: <p>This is my <a href="http://jsfiddle.net/hgRGm/77/">JSFiddle</a></p>
  
  <p>My html and js works fine in JSFiddle. But its giving error in the console in my rails app</p>
  
  <p><code>Uncaught TypeError: Cannot set property 'selected' of undefined admin.js:1000
  Chosen.result_select admin.js:1000
  Chosen.search_results_mouseup admin.js:1000
  (anonymous function) admin.js:1000
  x.event.dispatch admin.js:6
  v.handle</code></p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="col-xs-3 equ"&gt;
         &lt;select class = "car-select col-xs-10 col-sm-10 col-sm-offset-1 center boxalign" id = "brand"&gt;
            &lt;option value="brand"&gt;Brand Select&lt;/option&gt;
            &lt;option value="volvo"&gt;Volvo&lt;/option&gt;
            &lt;option value="saab"&gt;Saab&lt;/option&gt;
            &lt;option value="mercedes1"&gt;Mercedes&lt;/option&gt;
            &lt;option value="audi"&gt;Audi&lt;/option&gt;
            &lt;option value="volvo2"&gt;Volvo&lt;/option&gt;
            &lt;option value="saab"&gt;Saab&lt;/option&gt;
            &lt;option value="mercedes"&gt;Mercedes&lt;/option&gt;
            &lt;option value="audi"&gt;Audi&lt;/option&gt;
          &lt;/select&gt;
      &lt;/div&gt;
  
    &lt;div class="col-xs-3 equ"&gt;
         &lt;select class = "car-select col-xs-10 col-sm-10 col-sm-offset-1 center boxalign" id = "car"&gt;
            &lt;option value="brand" class = "mercedes"&gt;Brand Select&lt;/option&gt;
            &lt;option value="volvo" class = "mercedes"&gt;Volvo&lt;/option&gt;
            &lt;option value="saab" class = "volvo"&gt;Saab&lt;/option&gt;
            &lt;option value="mercedes" class = "volvo"&gt;Mercedes&lt;/option&gt;
            &lt;option value="audi" class = "volvo"&gt;Audi&lt;/option&gt;
            &lt;option value="volvo" class = "mercedes"&gt;Volvo&lt;/option&gt;
            &lt;option value="saab" class = "mercedes"&gt;Saab&lt;/option&gt;
            &lt;option value="mercedes" class = "mercedes"&gt;Mercedes&lt;/option&gt;
            &lt;option value="audi" class = "mercedes"&gt;Audi&lt;/option&gt;
          &lt;/select&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>$(".car-select").chosen({disable_search_threshold: 10});
  $(".car-select-deselect").chosen({allow_single_deselect:true}); 
    $(function() {
      $("#car").chained("#brand"); 
      $("#brand").trigger("liszt:updated");   
      $("#brand").bind("change", function(){
      $("#car").trigger("liszt:updated")
      });
  });
  </code></pre>