I'm trying to use dynamic option creation

Hello,

I have HTML table and I add row with add row button and one column has select option.
“Dynamic option creation” does not work in the select option on the line where I added the add line button.
I take the line from the console source code and paste it directly on the page, then “Dynamic option creation” works.
How to fix this problem?

https://select2.org/tagging

<select class="form-control">
  <option selected="selected">orange</option>
  <option>white</option>
  <option>purple</option>
</select>

$(".js-example-tags").select2({
  tags: true
});
Sponsor our Newsletter | Privacy Policy | Terms of Service