Checks if the target is an input element of specified inputType. If inputType is omitted, only checks if the target is an input element. The inputType corresponds to the input element's type attribute.
target
input
inputType
Element, EventTarget, or CSS selector.
Optional
Type of input for which to check.
true if the target is an input element with optionally matching inputType.
true
Checks if the
target
is aninput
element of specifiedinputType
. IfinputType
is omitted, only checks if thetarget
is aninput
element. TheinputType
corresponds to the input element's type attribute.