title: Select2 not applying on dynamic div
body: <p>I have a function to create dynamic div via template literal, inside each div i want to add a select2 select filter, but when the dynamic div is rendered in my page, select2 isn't initialize, anyone know how to fix this? below is a example snippet code:</p>
  
  <p>javascript :</p>
  
  <pre><code>function render_report_grid(data){
              var details = `&lt;select class="filter_select2 pull-right" 
                             id="filter_select2_${data.id}" multiple="multiple" name="select_project"&gt;
                             &lt;/select&gt;`
  }
  
  $('.filter_select2').select2({placeholder: "Select parent",});
  </code></pre>