Selection list  - <SELECT>   -  </SELECT>

Previous- SCRIPT - Script definition  |  Next-SERVER - Live wire script

Description
Defines a list box or drop down list usually used within a form. The select box is given a name and its value will be that of the selected <OPTION> tag within the list. Add the MULTIPLE attribute to allow multiple lines to be selected by holding down the shift key. The SIZE attribute allows the number of rows on display to be increased and does not control the width of the element, which normally grows to hold the widest value in the <OPTION> list. The width can be controlled by use of an inline style attribute.
Attributes
NameValuesDescription
accesskeykey_character
aligntop|middle|bottom|left|right|absmiddle|baseline|absbottom|texttopAlignment
classclassnameClass of the element which is used to associate the element with a style sheet.
datafldcolumn_name
datasrcid
dirltr|rtlThe direction in which text flows when surrounded by text which flows in different directions.
disabled
event_namescript_codeDefines script to run on event such as OnMouseOver
idstringA unique name to identify an element.
langlanguage_typeThe ISO description for the language of the element.
languagejavascript|jscript|vbscript|vbs
multiple
namestringNames a tag, particularly important in client side progamming and essential when submitting form data.
sizenumberFont size
stylestringSpecifies style information for the element.
tabindexnumberAllocates a tab order to over-ride the order of the elements on the web page.
titlestringTitle for element which is often displayed as a tool-tip when the cursor hovers over the element.

Example
<select name="mynumbers">
<option>one
<option>two
<option>three
</select>
or
<select name="mynumbers" style="width:200px;">
<option value=1>one
<option value=2>two
<option value=3>three
</select>
Will be displayed as :

or

Compatability
HTMLNETSCAPEINTERNET EXPLORER
4.1N2N3N4N6IE3IE4IE5IE6
YES YES YES YES YES YES YES YES YES

Previous- SCRIPT - Script definition  |  Next-SERVER - Live wire script