Is it possible (using HTML only) to display select
with option
s that span multiple lines each?
To select multiple items, the user has to hold down the shift or ctrl key, then select with the mouse.
The <select> element has some unique attributes you can use to control it, such as multiple to specify whether multiple options can be selected, and size to specify how many options should be shown at once.
The <select> Tag.
Simple selectors (select elements based on name, id, class) Combinator selectors (select elements based on a specific relationship between them) Pseudo-class selectors (select elements based on a certain state)
It is not possible using html select control.
You can use a div that can act as a dropdown list using JavaScript and css.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With