Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

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();
    
Sign In or Register to comment.