JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<div id="somediv">
    <form id="form1">
        <input type="text" name="i1"><input type="submit" />
    </form>
</div>
<br />
<ol>
    <li>Type a character in the input.</li>
    <li>Press Enter.</li>
</ol>
<b>Expected log output: </b>: 
<pre>
keydown
keydown
change
</pre>

<b>Actual output in IE8</b>
<pre>
keydown
change
</pre>

JavaScript

$('form').submit(function(){ return false; });

$('input').change(function(){
    console.log("change");
}).keydown(function( e ) {
    console.log("keydown: ", e.which);
});