How to use JavaScript to implement drop-down list selection box
This article introduces the relevant knowledge of "how to use JavaScript to achieve the drop-down list selection box". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Create a page
* * two drop-down selection boxes
-set property multiple property-multiple= "multiple" (drop-down selection box for multi-line display)
* * four buttons with events
Tip: multi-select ctrl or shift click options
The code is as follows:
HTML sample div#left {float:left;}