Name
<select>
Synopsis
<select>
...
</select>
Description
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(withoutmultiplespecified) and a scrolling list of n items otherwise.-
tabindex=n Specify this element’s position in the tabbing order.
See Chapter 6 for more information on using forms.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access