title: Select2 JQuery doesn't update Dom with add new selector by button
body: <p>I'm using selector2 (<a href="https://select2.org" rel="nofollow noreferrer">https://select2.org</a>) and I have a selector in order to chose food. I wish to add new selector with a bottom. I have done it but when the Dom refreshes, it shows me a bad selector:
  <a href="https://i.stack.imgur.com/urbeK.png" rel="nofollow noreferrer">up good selector and in down the new selector (the bad selector)</a></p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="row"&gt;
          &lt;!-- style="padding-top: 1rem; padding-left: 2rem" --&gt;
          &lt;div class="col-sm-12"&gt;
              &lt;b&gt;Food:&lt;/b&gt;
              &lt;select id="selectpicker1" data-live-search="true" data-width="70%"&gt;
                  &lt;option data-tokens="Hotdog" value="Hotdog"&gt;Hot Dog&lt;/option&gt;
                  &lt;option data-tokens="Burger" value="Burger"&gt;Burger&lt;/option&gt;
                  &lt;option data-tokens="Sugar" value="Sugar"&gt;Sugar&lt;/option&gt;
                  &lt;option data-tokens="Donut" value="Sugar"&gt;Donut&lt;/option&gt;
              &lt;/select&gt;
              &lt;button id="b1" class="add-more btn-success" type="button" onclick="doFunction()" ;&gt;+&lt;/button&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="ss"&gt;&lt;/div&gt;
      &lt;script&gt;
          function doFunction() {
              $(ss).append
              (
                  '&lt;div class="row"&gt;' +
                  '&lt;div class="col-sm-12"&gt;' +
                  '&lt;b&gt;Food:&lt;/b&gt;' +
                  '&lt;select  id="selectpicker1" data-live-search="true" data-width="70%"&gt;' +
                  '&lt;option data-tokens="Hotdog" value="Hotdog"&gt;Hot Dog&lt;option&gt;' +
                  '&lt;option data-tokens="Burger" value="Burger"&gt;Burger&lt;/option&gt;' +
                  '&lt;option data-tokens="Sugar" value="Sugar"&gt;Sugar&lt;/option&gt;' +
                  '&lt;option data-tokens="Donut" value="Sugar"&gt;Donut&lt;/option&gt;' +
                  '&lt;/select&gt;' +
                  '&lt;button id="b1" class="add-more btn-success" type="button" onclick="doFunction()";&gt;+&lt;/button&gt;' +
                  '&lt;/div&gt;' +
                  '&lt;/div&gt;'
              );
          }
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Have you some ideas to solve it?</p>