Partager via


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
  • Properties

Methods

The IHTMLSelectElement interface has these 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.

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.

Property Description

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

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

Reference

IHTMLSelectElement2

IHTMLSelectElement4