Assume an HTML textarea that you bound the change
event to it with textarea.onchange = ...
, or textarea.addEventListener('change', ...)
.
I want to modify it like textarea.textContent = '...'
or textarea.value = '...'
and this to trigger the aforementioned change
event.
This is not a duplicate question as the others I've found here imply the use of jQuery. I do not want to use jQuery, I know it saves lives and stuff but I'm fine without it, thanks. :^)