Support

Account

Home Forums ACF PRO Repopulate & change on ACF frontend form's Select2 Reply To: Repopulate & change on ACF frontend form's Select2

  • Hi @isvaljek

    It’s possible that the issue occurred because the elements were loaded by AJAX, so it’s not recognized by your function. For something like that, you need to use the on() function instead. This page should give you more idea about it: https://select2.github.io/examples.html#events.

    Also, please take a look at this page to learn more about this issue: http://stackoverflow.com/questions/6658752/click-event-doesnt-work-on-dynamically-generated-elements.

    If the issue persists, could you please ask it to Select2 community instead?

    I hope this makes sense 🙂