HTMLTextFormControlElement
Represents the base class for all HTML text form controls.
An enumeration with possible selection directions.
Gets or sets the default value of the input field.
Gets or sets the dirname HTML attribute.
Gets or sets if the textarea field is read-only.
Gets or sets if the field is required.
Gets or sets the maxlength HTML attribute, indicating
the maximum number of characters the user can enter.
This constraint is evaluated only when the value changes.
Gets or sets the placeholder HTML attribute, containing a hint to
the user about what to enter in the control.
Gets the direction in which selection occurred. This
is "forward" if selection was performed in the start-to-end
direction of the current locale, or "backward" for the opposite
direction.
Gets or sets the index of the end of selected text. If no text
is selected, contains the index of the character that follows
the input cursor. On being set, the control behaves as if
setSelectionRange() had been called with this as the second
argument, and selectionStart as the first argument.
Gets or sets the index of the beginning of selected text.
If no text is selected, contains the index of the character
that follows the input cursor. On being set, the control behaves
as if setSelectionRange() had been called with this as the first
argument, and selectionEnd as the second argument.
Gets or sets the current value in the control.
Selects a range of text, and sets selectionStart and selectionEnd.
If either argument is greater than the length of the value, it is treated
as pointing to the end of the value. If end is less than start, then
both are treated as the value of end.
Selects the contents of the control.