FORMSELECTOPTION v16

This function and procedure generates the <OPTION> tag, which represents one choice in a <SELECT> element.

Syntax

The following is the syntax for HTP:

HTP.FORMSELECTOPTION (
   cvalue         IN       VARCHAR2
   cselected      IN       VARCHAR2   DEFAULT NULL
   cattributes    IN       VARCHAR2   DEFAULT NULL);

The following is the syntax for HTF:

HTF.FORMSELECTOPTION (cvalue, cselected, cattributes) RETURN VARCHAR2;

Parameters

ParameterPurpose
cvalueThe text for the option
cselectedIf the value for this parameter isn't NULL, adds the SELECTED attribute to the tag
cattributesOther attributes to include as is in the tag