This standalone example demonstrates listening to countriesWidget:update events with multi-select selects. For multi-select, the event detail includes selectedValues as an array.
How it works: The widget dispatches countriesWidget:update events on the affected select element whenever the value changes, whether it is from user interaction, geolocation preselection, or programmatic updates. For multi-select, use e.detail.selectedValues array.
Try it: Select multiple countries and subdivisions. The output below will update automatically using the event listeners.