title: Selectize.js on Appended Elements
body: <p>I am currently trying to append new  elements by clicking a button with a class of "add" to a parent . I want these appended elements to get the functionalities of <a href="http://brianreavis.github.io/selectize.js/" rel="nofollow">selectize.js</a> after being appended but somehow it's not working. Here is my javascript code:</p>
  
  <pre><code>$('.add').click(function(){
  var newSelectize = '&lt;select id="input-tags"&gt;&lt;/select&gt;';
  var selectizeWrapper =$(this).parent().find('.selectize-wrapper');
  var lastSelectize = selectizeWrapper.find('#input-tags').last();
  
  selectizeWrapper.append(newSelectize);
  lastSelectize.selectize({
       delimiter: ',',
      persist: false,
      maxItems: 1,
      options: items,
      labelField: "item",
      valueField: "item",
      sortField: 'item',
      searchField: 'item'
      });
  });
  </code></pre>
  
  <p>Here is my sample <a href="http://jsfiddle.net/wh6Nx/41/" rel="nofollow">JSFiddle.</a></p>