You are here:  NetStrider » Tutorials » HTMLRef » Commands » SELECT «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <SELECT> Command next

Command Syntax:

<SELECT command parameters>
  List of Options
</SELECT>

The command encloses, defines and contains an option list used in conjunction with <OPTION> statements within a <FORM> to produce a drop down selection list.

See also:  <FORM>, <INPUT>, <OPTION>.

Command Parameters:

multiple

Permits the user to select multiple listed options.

name="select list name"

Provides the name of the select list for forms information processing purposes.

size="# of visible items"

Defines the height of the viewable area by the number of items in the selection list to be displayed.

Must contain a list of <OPTION> statements which define the choices available and establish any default choice.

The width of the largest displayed option text determines the width of the selection list drop down menu dialog box.

Example: Select a Study Area:<BR> <SELECT name="major" size=1> <OPTION>Biology <OPTION>Chemistry <OPTION>Engineering <OPTION>Mathematics <OPTION>Physics </SELECT> Yields -

Select a Study Area:

When placed within a <FORM> command, produces a drop down menu.

Unless the multiple command parameter is used, options are mutually exclusive.

The selection list returns the displayed values for the selected options to the file server unless alternate value parameters are set in the <OPTION> statements.

Return to Section S:Z


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz