We’re using a Form Select component with dynamically populated options and values.
We’d like to detect when the last item in the list is selected—so we can, for example, show or hide a specific section based on that.
It would be very helpful if we could access something like select1.selectedIndex.last()
to achieve this behavior.
Thank you!