Easy Tutorial
❮ Jsref Italics Prop Style Animationname ❯

Select size Attribute


Definition and Usage

The size attribute sets or returns the number of options visible at once in a drop-down list.

Syntax

Set the size attribute:

Return the size attribute:


Browser Support

All major browsers support the size attribute.


Example

Change the number of visible options in a drop-down list:

❮ Jsref Italics Prop Style Animationname ❯