title: Is there a way to remove optgroup without destroying the code?
body: <p>All I was attempting was to edit some old code, where I had made an option group, but now I'd like to take it away. I can't just do it with css because it's using the chosen plugin. </p>
  
  <pre><code>function flavorChooser (title, item) {
  var title = 'hidden';
  var optgroup = jQuery('&lt;optgroup display="' + title + '"/&gt;');
  
  
  jQuery.each(item, function(sub_title, sub_item) {
      if (typeof sub_item[0] !== "undefined") {
          var opt = jQuery('&lt;option value="' + sub_item[0] + '" data-store-locator-value="' + sub_item[0] + '"&gt;' + sub_title + '&lt;/option&gt;');
          optgroup.prepend(opt);
      }
  });
  // console.log('chozen ');
  // jQuery('.chzn-container .chzn-results .group-result').css('display', 'none');
  return optgroup;
  </code></pre>
  
  <p>}</p>