How to change the Content of a – Cody Tookode Dec 06 '22 at 11:08

  • @AlPo Thanks. I have updated the answer by using `innerText` which does the same thing. – Sanan Ali Dec 06 '22 at 14:41
  • 1
    `innerText` removes all of the node's children and replaces them with a single text node with the given string value. In this particular case an empty string is a perfect answer to the question. However, it is worth mentioning that `HTMLTextAreaElement` interface does have a `value` attribute. – Cody Tookode Dec 06 '22 at 20:36