0

Good day I have changed the data in textarea programmatically, but the event oninput does not occur and I cannot handle the change. Is there a way to fire this event in the textarea.

let nextElem = document.getElementById('inp_1');
if (nextElem != null) {
  nextElem.value = 'programmInput';
}

<textarea oninput="auto_grow(this)"></textarea>
Gershom Maes
  • 6,301
  • 2
  • 31
  • 47

0 Answers0