I installed an event handler on an input using
input
var element = document.getElementById(\'some-input\'); element.addEventListener(\'input\', functi
This answer is buried in a comment, but is more concise than the most popular answer, so I'm gonna give it a shot as its own answer. Hope it helps.
element.dispatchEvent(new Event('input', { bubbles: true }));
Or maybe even just...
element.dispatchEvent(new Event('input'));