You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two selects in one page and I want to attach an event handler to do something when they are selected, but there's no way to target each one of these divs, because as far as I can see there's no id or name I can know in advance.
The text was updated successfully, but these errors were encountered:
Hi @jpelay, check out our Select API documentation and Events section. There are available events in the Select component. If you want to do something when the option is selected, just get a select element by id and add an event listener on it - if there is no id, just add it to the select tag.
I have two selects in one page and I want to attach an event handler to do something when they are selected, but there's no way to target each one of these divs, because as far as I can see there's no
id
orname
I can know in advance.The text was updated successfully, but these errors were encountered: