This topic has not yet been rated - Rate this topic

HTMLSelectElement Prototype

Defines the properties and methods inherited by objects in the HTMLSelectElement prototype chain.

Syntax

HTML N/A
Scripting HTMLSelectElement.prototype

Members Table

The following table lists the members exposed by the HTMLSelectElement Constructor object.

Attributes/Properties

Attribute Property Description
DATAFLD dataFld Sets or retrieves a field of a given data source, as specified by the dataSrc property, to bind to the specified object.
DATAFORMATAS dataFormatAs Sets or retrieves the rendering format for the data supplied to the object.
DATASRC dataSrc Sets or retrieves the source of the data for data binding.
form Retrieves a reference to the form that the object is embedded in.
length Gets or sets the number of objects in a collection.
MULTIPLE multiple Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
NAME name Gets or sets the name of the object.
selectedIndex Sets or retrieves the index of the selected option in a select object.
SIZE size Sets or retrieves the number of rows in the list box.
type Retrieves the type of select control based on the value of the MULTIPLE attribute.
VALUE value Sets or retrieves the value which is returned to the server when the form control is submitted.

Collections

Collection Description
options Retrieves a collection of the option objects in a select object.

Events

Event Event Property Description
change onchange Fires when the contents of the object or selection have changed.

Methods

Method Description
add Adds an element to the areas, controlRange, or options collection.
item Retrieves a select object or an object from an options collection.
namedItem Retrieves a select object or an object from an options collection.
remove Removes an element from the collection.
tags Retrieves a collection of objects that have the specified HTML tag name.
urns Retrieves a collection of all objects to which a specified behavior is attached.

Remarks

For more information on this and other DOM Prototypes , see Document Object Model Prototypes, Part 1: Introduction.

This prototype derives from the Element Constructor.

Applies To

SELECT

See Also

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.