Implementation of adding data attribute for appended option element? #109
-
Hi, it's me again ;) To work with multiple selects i need to be able to append data attributes for newly added remove options in whatever way i need. For example i remotely find Object with name "FOO" and when i choose first option, it has to append option as :
when remove url responds with json:
with select2 i used to do it in processResult method
source: https://select2.org/data-sources/ajax#transforming-response-data Is this implemented in any way ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Finally did it. If there is a better way to do it, please let me know
|
Beta Was this translation helpful? Give feedback.
Finally did it. If there is a better way to do it, please let me know