<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
|
ACCESSKEY | NN n/a IE 4 HTML n/a | ||
ACCESSKEY=" | 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., | |||
Example
<SELECT NAME="chapters" ACCESSKEY="c"> ... </SELECT> | |||
Value Single character of the document set. | |||
| |||
Object Model Reference
|
ALIGN | NN n/a IE 4 HTML 4 | ||
ALIGN=" | 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. | |||
| |||
Object Model Reference
|
DATAFLD | NN n/a IE 4 HTML n/a | ||
DATAFLD=" | 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 | |||
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. | |||
| |||
Object Model Reference
|
DATASRC | NN n/a IE 4 HTML n/a | ||
DATASRC=" | 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. | |||
| |||
Object Model Reference
|
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. | |||
| |||
Object Model Reference
|
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 | |||||
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. | |||||
| |||||
Object Model Reference
|
NAME | NN all IE all HTML all | ||||
NAME=" | 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. | |||||
| |||||
Object Model Reference
|
SIZE | NN all IE all HTML all | ||
SIZE=" | 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. | |||
| |||
Object Model Reference
|
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. | |||
| |||
Object Model Reference
|