Note: this uses a version of Select2 that was manually added to the WebContent folder of this database.
It is loaded in the theme.
With a combobox (change event, partial refresh):
You picked:
With a listbox (multi-select):
Hidden input with Ajax call for options: