martin2k

The SELECT Tag

HomeForumTutorials Tags:
 
 

Name

Select

Description

This tag creates a ComboBox (drop-down list).  It is used as part of a Form (see the FORM tag) as an input control.  The OPTION tag is used to define items in the list.

Attributes

DISABLED

Disables the drop-down list.

MULTIPLE

This attribute turns the drop-down list into a ListBox.  More than one item in the list can then be selected at once.

NAME

Specifies the name used by the Form to identify the drop-down list.

SIZE

Specifies the number of rows displayed in the list.

Related Tags

The OPTION tag is used to define items in the list.  The OPTGROUP tag is used to separate list items into groups.

Example

Code

<select multiple size="4">
<option value="egypt">Egypt</option>
<option value="ethiopia">Ethiopia</option>
<option value="france">France</option>
<option value="germany">Germany</option>
<option value="sudan">Sudan</option>
<option value="uk" selected>UK</option>
</select>

Generates


Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Thursday 26 October 2006 09:34:09 PM +0100.