FunctionschangeTextchangeText CallablechangeText(element: string | HTMLElement, text: string): voidChange the textContent of an elementParameterselement: string | HTMLElementThe element to change the textContent oftext: stringThe new text contentReturns void
Change the
textContent
of an element