It looks like you're new here. If you want to get involved, click one of these buttons!
Hi! Is there a way to refresh a select2 dataset after adding an item by clicking the "Add" or "Remove" buttons?
Thanks!
What version of FUEL are you running? I have a project that uses select2 with add/edit and it's refreshing them. That said, select2s are a little different in that you have to destroy them and then recreate them:
$("#myfield").select2("destroy").select2();
I'm using select2 with add/edit in a repeatable (template) field and it's not adding new inline entries.
Comments
What version of FUEL are you running? I have a project that uses select2 with add/edit and it's refreshing them. That said, select2s are a little different in that you have to destroy them and then recreate them:
I'm using select2 with add/edit in a repeatable (template) field and it's not adding new inline entries.