Provides special properties and methods for manipulating the options, layout, and presentation of elements.
Members
# checkValidity
Returns whether a form will validate when it is submitted, without having to submit it.
# formAction
Overrides the action attribute (where the data on a form is sent) on the parent form element.
# formEnctype
Used to override the encoding (formEnctype attribute) specified on the form element.
# formNoValidate
Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
# list
Specifies the ID of a pre-defined datalist of options for an input element.
# max
Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.
# maxLength
Sets or retrieves the maximum number of characters that the user can enter in a text control.
# min
Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.
# multiple
Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
# pattern
Gets or sets a string containing a regular expression that the user's input must match.
# placeholder
Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
# step
Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
# stepDown
Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
# stepUp
Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
# useMap
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
# validationMessage
Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
# validity
Returns a ValidityState object that represents the validity states of an element.
# valueAsDate
Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
# willValidate
Returns whether an element will successfully validate based on forms validation rules and constraints.