title: Bootstrap chosen add new item if no exist
body: <p>I am trying add new item if not exist. This code working but i dont know how add item directly on list of selected.</p>
  
  <pre><code>Chosen.prototype.no_results = function(terms) {
    var no_results_html;
    no_results_html = $('&lt;li class="no-results"&gt;' + this.results_none_found + '"&lt;span&gt;&lt;/span&gt;" kao' +
      ' &lt;button class="add" id="interni" class="submit"&gt; Interni tip &lt;/button&gt; ' +
      ' &lt;button class="add" id="eksterni" class="submit"&gt; Eksterni tip&lt;/button&gt; ' +
      '&lt;/li&gt; ');
    no_results_html.find("span").first().html(terms);
    no_results_html.find(".add").click(function() {
  
      var terms1 = terms + ' (' + this.id + ')';
  
      $('.chosen-select').chosen().append('&lt;option&gt;' + terms1 + '&lt;/option&gt;');
      $('.chosen-select').chosen().trigger('chosen:updated');
  
    });
    return this.search_results.html(no_results_html);
  };
  </code></pre>
  
  <p>resolved: Add selected atribute on option tag.</p>
  
  <pre><code> $('.chosen-select').chosen().append('&lt;option selected&gt;' + terms1 + '&lt;/option&gt;');
  </code></pre>