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
  • 7,358
  • 2
  • 35
  • 55
user2749279
  • 51
  • 1
  • 5

0 Answers0