Object: HTMLSelectElement
HTMLSelectElement properties
|
Property name |
Type |
Description |
Status |
Support level |
Availability |
|---|---|---|---|---|---|
|
boolean |
When true, indicates that the form control is not available. |
writable |
DOM 2 HTML |
4.6 or later |
|
|
Returns the form that contains the form control. If this element is not contained by a form, this property returns null. |
read only |
DOM 2 HTML |
4.6 or later |
||
|
int |
Specifies the number of <option> elements the selection list contains. |
writable |
DOM 2 HTML |
4.6 or later |
|
|
boolean |
When true, indicates that more than one option may be selected from the list. |
writable |
DOM 2 HTML |
4.6 or later |
|
|
DOMString |
Specifies the name of the form control. This is the name portion of the name-value pair that is submitted with the form. |
writable |
DOM 2 HTML |
4.6 or later |
|
|
Returns an index of the <option> elements contained within the selection list. Index positions begin at 0 and continue to HTMLOptionsCollection.length-1. |
read only |
DOM 2 HTML |
4.6 or later |
||
|
int |
Specifies the index position of the selected option. |
writable |
DOM 2 HTML |
4.6 or later |
|
|
int |
Specifies the number of visible rows. |
writable |
DOM 2 HTML |
4.6 or later |
|
|
int |
Specifies the tabbing order of the form control. |
writable |
DOM 2 HTML |
4.6 or later |
|
|
DOMString |
Returns the type of form control. The value returned depends on the value of HTMLSelectElement.multiple: |
read only |
DOM 2 HTML |
4.6 or later |
|
|
DOMString |
Specifies the value of the currently selected option(s). This is the value portion of the name-value pair that is submitted with the form. |
writable |
DOM 2 HTML |
4.6 or later |