In my select2 select, I need to add li after the document is ready, and after adding, how can I reinitialize select2. If I ever close and reopen the selection, the added data will be selected, but not immediately after the addition. How can I reinitialize it.
source share