OptionaleventOptionalidHTML ID to assign to this element.
OptionalinputThe HTML input inputmode. Common values include 'decimal', 'email', 'none', 'numeric', 'search', 'tel', 'text', and 'url'.
OptionalpatternSets the pattern attribute
OptionalpostValidation to be run against the converted input string, before setting the field.
Return undefined to indicate no validation error, or return a string containing a validation message.
OptionalpreValidations to be run against the raw input string, before any conversion.
Return undefined to indicate no validation error, or return a string containing a validation message.
OptionaltypeThe HTML input type. You may wish to change this to 'number' if dealing with numerical fields.
Which event to hook. e.g. 'input' for when any input is entered (the default), or 'change'.