title: Getting the value of a form field after keypress event
body: <p><code>myInput.value</code> is one keystroke behind when I examine it in a <code>keyPress</code> event handler. So if the users types &quot;a&quot;, <code>myInput.value</code> gives me &quot;&quot;. Then when the user types &quot;b&quot;, <code>myInput.value</code> gives me &quot;a&quot;, and so on. The value doesn't seem to get updated with the character input by the keystroke that triggered the event. What am I doing wrong?</p>