Name
<select>
Synopsis
<select> ... </select>
Define a multiple-choice menu or scrolling list within a
<form>
, containing one or more
<option>
tags.
Attributes
-
disabled
Disable this control, making it inactive.
-
multiple
Allow user to select more than one
<option>
within the<select>
.-
name
=string
Define the name for the selected
<option>
values that, if selected, are passed to the form-processing application (required).-
onblur
=applet
Specify an applet to be run when the mouse leaves this element.
-
onchange
=applet
Specify an applet to be run when the user changes the value of this element.
-
onfocus
=applet
Specify an applet to be run when the mouse enters this element.
-
size
=n
Display items using a pull-down menu for
size=1
(withoutmultiple
specified) and a scrolling list ofn
items otherwise.-
tabindex
=n
Specify this element’s position in the tabbing order.
See Chapter 6 for more information on using forms.
Get Webmaster in a Nutshell, Third 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.