Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Multi-line Options in Html Select Tags Possible?

Tags:

Is it possible (using HTML only) to display select with options that span multiple lines each?

like image 238
chriss Avatar asked Jul 22 '09 13:07

chriss


People also ask

How do I select multiple options from a drop down list in HTML?

To select multiple items, the user has to hold down the shift or ctrl key, then select with the mouse.

Which is the correct tag to be used for selecting multiple options?

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.

Which tag can be used for selecting one of many choices in HTML?

The <select> Tag.

What are the 3 types of selecting a HTML element?

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)


1 Answers

It is not possible using html select control.

You can use a div that can act as a dropdown list using JavaScript and css.

like image 140
rahul Avatar answered Jan 15 '23 13:01

rahul