Select
The select
form element can either be a pull-down menu or a scrollable list. The items in it are called the options of the select and are stored in the select
element's options[]
array.
Properties
| FF, IE 3 | Number of options in the select |
| FF, IE 4 | If |
| FF, IE 3 |
|
| FF, IE 3 | Read-only: Array containing the |
| FF, IE 3 | Contains the selected option's array position in a |
Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.