HTMLSelectElement object
Implements the document object model (DOM) representation of the select element.
![]() |
DOM Information
Inheritance Hierarchy
Members
The HTMLSelectElement object has these types of members:
Methods
The HTMLSelectElement object has these methods.
| Method | Description |
|---|---|
| checkValidity |
Returns whether a form will validate when it is submitted, without having to submit it. |
| setCustomValidity |
Sets a custom error message that is displayed when a form is submitted. |
Properties
The HTMLSelectElement object has these properties.
| Property | Description |
|---|---|
|
Provides a way to direct a user to a specific field when a document loads. | |
|
When present, marks an element that can't be submitted without a value. | |
|
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. | |
|
Returns a ValidityState object that represents the validity states of an element. | |
|
Returns whether an element will successfully validate based on forms validation rules and constraints. |
Send comments about this topic to Microsoft
Build date: 11/28/2012
