• 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.

    Parameters

    Returns target is HTMLInputElement

    true if the target is an input element with optionally matching inputType.