Is there a way to bind a click event to the select options and not to the select box itself?
The change event also won’t work for me because when I first click the box I’m not able to select the first option (since it’s already selected by default), and I really need to be able to also select the first option.
Is there any way to get around this, either binding a click or a change event?
You could either:
a) Add a ‘Please select…‘
optionas the default item in theselect.b) Run the ‘selection changed‘ code on page load to pick up the default, something like this.
and