JSFiddle - React, Tailwind, and code Playground
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>
<textarea id="console" rows="20" cols="50"></textarea>
JavaScript
var log = function(s){ var c = $('#console'); c.text(c.text()+s+"\r\n"); }
$(document).delegate('input', 'change', function(){
log("change");
});
$(document).delegate('input', 'keydown', function(){
log("keydown");
});
$('form').submit(function(){ return false; });