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
targetis aninputelement of specifiedinputType. IfinputTypeis omitted, only checks if thetargetis aninputelement. TheinputTypecorresponds to the input element's type attribute.