type property

Retrieves the type of select control based on the value of the MULTIPLE attribute.

Syntax

JavaScript

p = object.type

 

Property values

Type: String

select-multiple

The MULTIPLE attribute is true. Multiple OPTION elements can be selected.

select-one

Default. The MULTIPLE attribute is false. Only one OPTION element can be selected.

Standards information

See also

select

 

 

Show: