Export (0) Print
Expand All

IHTMLSelectElement interface

This interface provides access to the properties and methods of the select element.

Members

The IHTMLSelectElement interface inherits from the IDispatch interface. IHTMLSelectElement also has these types of members:

Methods

The IHTMLSelectElement interface has these methods.

MethodDescription
add

Adds an element to the areas, controlRange, or options collection.

item

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.

 

Properties

The IHTMLSelectElement interface has these properties.

PropertyDescription

disabled

Sets or retrieves a value that indicates whether the user can interact with the object.

form

Retrieves a reference to the form that the object is embedded in.

length

Sets or retrieves the number of objects in a collection.

multiple

Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.

name

Sets or retrieves the name of the object.

selectedIndex

Sets or retrieves the index of the selected option in a select object.

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 IHTMLSelectElement::multiple attribute.

value

Sets or retrieves the value which is returned to the server when the form control is submitted.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IHTMLSelectElement2
IHTMLSelectElement4

 

 

Community Additions

ADD
Show:
© 2014 Microsoft