Skip to main content

ElementCreateInput

Callable

  • ElementCreateInput(ID: string, Type: string, Value: string, MaxLength?: string | number, form?: Node): HTMLInputElement

  • Creates a new text input element in the main document.Does not create a new element if there is already an existing one with the same ID


    Parameters

    • ID: string

      The id of the input tag to create.

    • Type: string

      Type of the input tag to create.

    • Value: string

      Value of the input tag to create.

    • optionalMaxLength: string | number

      Maximum input tag of the input to create.

    • optionalform: Node

      The form the element belongs to

    Returns HTMLInputElement

    • The created HTML input element