title: How do I programmatically trigger an “input” event without jQuery?
body: <p>I installed an event handler on an <code>input</code> using</p>
  
  <pre><code>var element = document.getElementById('some-input');
  element.addEventListener('input', function() {
      console.log('The value is now ' + element.value);
  });
  </code></pre>
  
  <p>As expected, the handler is triggered when I type into the text field, but I also need to invoke this handler from my code. How can I simulate the <code>input</code> event so that my event listener is called?</p>