How to add a function to a <select> list

(Miguel Alvarez Aparicio) #1

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!

(Hans-Gerd Claßen) #2 (11.9 KB)
happy day :slight_smile:

(Miguel Alvarez Aparicio) #3

Thank you sooooo much!!