Skip to main content

changeText

Callable

  • changeText(element: string | HTMLElement, text: string): void

  • Change the textContent of an element


    Parameters

    • element: string | HTMLElement

      The element to change the textContent of

    • text: string

      The new text content

    Returns void