How to add a function to a <select> list

Hello, I have made a kind of seach bar in a text box (a rectangle) where you can click on a list of many many names with < select >". So by default when you click on one of the names the value of the id change (select.valeu=x). So I would like to start a function that I have already crated ( search(){} ), but adding event to the like onclick, onchange, etc, doesn’t seem to work. I have tried to add the function at the end of the text box with a < script > but the function includes hype functions like hypeDocument.goToTimeInTimelineNamed so when I tried hype is not recognised. Any tip how can I call a javascript function that I have created from a < select > tag?

Thanks a lot!

selectOnChange.hype.zip (11.9 KB)
happy day :slight_smile:

4 Likes

Thank you sooooo much!!