title: Add item to input programmatically
body: <p><a href="http://brianreavis.github.io/selectize.js/">Selectize.js</a> allows to transform inputs into widgets with tagging, auto-complete etc.. I'm trying to add tag into input using code.</p>
  
  <p>Here's what I have so far.</p>
  
  <pre><code>$(function() {
      $("#tags").selectize({
          create: true
      })
  
      var selectize_tags = $("#tags")[0].selectize
      selectize_tags.createItem("foo")
      selectize_tags.refreshItems()
  })
  </code></pre>
  
  <p><a href="http://jsfiddle.net/qDL37/">http://jsfiddle.net/qDL37/</a></p>
  
  <p>Unfortunately, “foobar“ isn't added to input box. As far as I know, it's <a href="https://github.com/brianreavis/selectize.js/blob/master/docs/api.md#methods_items">the correct way</a> to do it.</p>
  
  <p>Could this be a bug in selectize.js? I tried to search through GitHub issues, but couldn't find anything like that.</p>
  
  <p>Also I tried to read code of selectize.js, but no luck.</p>