<SELECT> | NN all IE all HTML all
<SELECT>...</SELECT> | End Tag: Required
The SELECT element displays information from nested OPTION elements as either a scrolling list or pop-up menu in a document. Users typically make a selection from the list of items (or multiple selections from a scrolling list if the SIZE attribute is set greater than 1 and the MULTIPLE attribute is set). The VALUE attribute of the selected OPTION item is submitted as the value part of a name/value pair to the server with a form. Navigator requires that a SELECT element be placed inside a FORM element.
Example
    <SELECT NAME="chapters">
        <OPTION VALUE="chap1.html">Chapter 1
        <OPTION VALUE="chap2.html">Chapter 2
        <OPTION VALUE="chap3.html">Chapter 3
        <OPTION VALUE="chap4.html">Chapter 4
    </SELECT>
Object Model Reference
NN | [window.]document.formName.selectName [window.]document.forms[i].elements[i]
IE | [window.]document.formName.selectName [window.]document.forms[i].elements[i] [window.]document.all.elementID

ACCESSKEY | NN n/a IE 4 HTML n/a
ACCESSKEY="character" | Optional
A single character key that brings focus to the element. The browser and operating system determine if the user must press a modifier key (e.g., Ctrl, Alt, or Command) with the access key to bring focus to the element. In IE 4/Windows, the Alt key is required, and the key is not case sensitive. This attribute does not work in IE 4/Mac.
Example
    <SELECT NAME="chapters" ACCESSKEY="c">
    ...
    </SELECT>
Value Single character of the document set.
Default | None.
Object Model Reference
IE | [window.]document.formName.selectName.accessKey [window.]document.forms[i].elements[i].accessKey

ALIGN | NN n/a IE 4 HTML 4
ALIGN="alignmentConstant" | Optional
Determines how the rectangle of the SELECT element (particularly when the SIZE attribute is set greater than 1) aligns within the context of surrounding content. See the section "Alignment Constants" earlier in this chapter for a description of the possibilities defined in both Navigator and Internet Explorer for this attribute.
Example
    <SELECT NAME="chapters"MULTIPLE ALIGN="baseline">
    ...
    </SELECT>
Value Case-insensitive constant value. All constant values are available in Internet Explorer 4.
Default | bottom (IE 4/Windows); absmiddle (IE 4/Macintosh).
Object Model Reference
IE | [window.]document.formName.selectName.align [window.]document.forms[i].elements[i].align

DATAFLD | NN n/a IE 4 HTML n/a
DATAFLD="columnName" | Optional
Used with IE 4 data binding to associate a remote data source column name to the selectedIndex property of a SELECT element (i.e., a zero-based index value of the item currently selected in the list, as described in the SELECT object of ). As such, you can use data binding only with SELECT elements that do not specify the MULTIPLE attribute. A DATASRC attribute must also be set for the element.
Example
    <SELECT NAME="chapters" DATASRC="#DBSRC3" DATAFLD="chapterRequest">
        <OPTION VALUE="chap1.html">Chapter 1
        <OPTION VALUE="chap2.html">Chapter 2
        <OPTION VALUE="chap3.html">Chapter 3
        <OPTION VALUE="chap4.html">Chapter 4
    </SELECT>
Value Case-sensitive identifier.
Default | None.
Object Model Reference
IE | [window.]document.formName.selectName.dataFld [window.]document.forms[i].elements[i].dataFld

DATASRC | NN n/a IE 4 HTML n/a
DATASRC="dataSourceName" | Optional
Used with IE 4 data binding to specify the name of the remote ODBC data source (such as an Oracle or SQL Server database) to be associated with the element. Content from the data source is specified via the DATAFLD attribute.
Example
    <SELECT NAME="chapters" DATASRC="#DBSRC3" DATAFLD="chapterRequest">
        <OPTION VALUE="chap1.html">Chapter 1
        <OPTION VALUE="chap2.html">Chapter 2
        <OPTION VALUE="chap3.html">Chapter 3
        <OPTION VALUE="chap4.html">Chapter 4
    </SELECT>
Value Case-sensitive identifier.
Default | None.
Object Model Reference
IE | [window.]document.formName.selectName.dataSrc [window.]document.forms[i].elements[i].dataSrc

DISABLED | NN n/a IE 4 HTML 4
DISABLED | Optional
The presence of this attribute disables the entire SELECT element and its nested OPTION elements. The element receives no events when it is disabled.
Example
    <SELECT NAME="chapters" DISABLED>
        <OPTION VALUE="chap1.html">Chapter 1
        <OPTION VALUE="chap2.html">Chapter 2
        <OPTION VALUE="chap3.html">Chapter 3
        <OPTION VALUE="chap4.html">Chapter 4
    </SELECT>
Value The presence of this attribute sets its value to true.
Default | false
Object Model Reference
IE | [window.]document.formName.selectName.disabled [window.]document.forms[i].elements[i].disabled

MULTIPLE | NN all IE all HTML all
MULTIPLE | Optional
The presence of the MULTIPLE attribute instructs the browser to render the SELECT element as a list box and to allow users to make multiple selections from the list of options. By default, the SIZE attribute is set to the number of nested OPTION elements, but the value may be overridden with the SIZE attribute setting. Users can select contiguous items by Shift-clicking on the first and last items of the group. To make discontiguous selections, Windows users must Ctrl-click on each item; Mac users must Command-click on each item. The MULTIPLE attribute has no effect when SIZE is set to 1 to display a pop-up menu.
Example
    <SELECT NAME="equipment" MULTIPLE>
    <OPTION VALUE="monitor">Video monitor
    <OPTION VALUE="modem">Modem
    <OPTION VALUE="printer">Printer
    ...
    </SELECT>
Value The presence of this attribute sets its value to true.
Default | false
Object Model Reference
NN | [window.]document.formName.selectName.type [window.]document.forms[i].elements[i].type
IE | [window.]document.formName.selectName.multiple [window.]document.forms[i].elements[i].multiple [window.]document.formName.selectName.type [window.]document.forms[i].elements[i].type

NAME | NN all IE all HTML all
NAME="elementIdentifier" | Optional
The name submitted as part of the element's name/value pair with the form. It is similar to the NAME attribute of INPUT elements.
Example
    <SELECT NAME="cpu">
    <OPTION VALUE="486">486
    <OPTION VALUE="pentium">Pentium
    <OPTION VALUE="pentium2">Pentium II
    ...
    </SELECT>
Value Case-sensitive identifier.
Default | None.
Object Model Reference
NN | [window.]document.formName.selectName.name [window.]document.forms[i].elements[i].name
IE | [window.]document.formName.selectName.name [window.]document.forms[i].elements[i].name

SIZE | NN all IE all HTML all
SIZE="rowCount" | Optional
Controls the number of rows of OPTION elements that appear in the SELECT element. With a value of 1, the SELECT element displays its content as a pop-up menu; with a value greater than 1, OPTION items are rendered in a list box. Browsers control the width of the element, based on the widest text associated with nested OPTION elements.
Example
    <SELECT NAME="equipment" SIZE=3>
    <OPTION VALUE="monitor">Video monitor
    <OPTION VALUE="modem">Modem
    <OPTION VALUE="printer">Printer
    ...
    </SELECT>
Value Any positive integer.
Default | 1
Object Model Reference
IE | [window.]document.formName.selectName.size [window.]document.forms[i].elements[i].size

TABINDEX | NN n/a IE 4 HTML 4
TABINDEX=integer | Optional
A number that indicates the sequence of this element within the tabbing order of all focusable elements in the document. Tabbing order follows a strict set of rules. Elements that have values other than zero assigned to their TABINDEX attributes are first in line when a user starts tabbing in a page. Focus starts with the element with the lowest TABINDEX value and proceeds in order to the highest value, regardless of physical location on the page or in the document. If two elements have the same TABINDEX values, the element that comes earlier in the document receives focus first. Next come all elements that either don't support the TABINDEX attribute or have the value set to zero. These elements receive focus in the order in which they appear in the document. Note that the Macintosh user interface does not provide for giving focus to elements other than text and password INPUT fields.
Example
    <SELECT NAME="chapters" TABINDEX=5>
    ...
    </SELECT>
Value Any integer from through 32767. In IE 4, setting the TABINDEX to -1 causes the element to be skipped in tabbing order altogether.
Default | None.
Object Model Reference
IE | [window.]document.formName.selectName.tabIndex [window.]document.forms[i].elements[i].tabIndex