Properties
Similar Topics
Statistics
Comments
2
Participants
2
Subscribers
3
Votes
1
Views
957
Share

Get the selected element of a drop-down list with JavaScript
Answered
Hi.
Could I get the selected element of a drop-down list only with JavaScript? (I mean: as in the attached applet, without have to create the text object selectedOption) Is it possible?
Files:
mathhobbyist_qu...
- GeoGebra
- Help
- Partners
-
Contact us
- Feedback & Questions
- This email address is being protected from spambots. You need JavaScript enabled to view it.
- +43 677 6137 2693
© 2023 International GeoGebra Institute
I tried with:
However I got a True value for the option variable, and a new (and unwanted) text object.
Make an object index=SelectedElement(lst) then use ggbApplet.getValue("index")
Comments have been locked on this page!