Refresh select2 after adding item

Hi!
Is there a way to refresh a select2 dataset after adding an item by clicking the "Add" or "Remove" buttons?

Thanks!

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:

    $("#myfield").select2("destroy").select2();
    
  • I'm using select2 with add/edit in a repeatable (template) field and it's not adding new inline entries.

Sign In or Register to comment.