In this video we look at an HTML page with a drop-down select. We grab the chosen option's value from the select when the user clicks a button. That gets displayed in an alert, in the console, and on the page. There is also select-change handling code that clears out the page display when the user changes the option in the select. The code is repeated with some alterations, such as: 1) using addEventListener in lieu of onclick and onchange, 2) using a template literal instead of concatenation, and 3) dynamically loading the option instead of hard coding them in design.
Auf dieser Seite können Sie das Online-Video HTML CSS JavaScript Demo: Select Option mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Thomas Blum 14 Januar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 199 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!