JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://jqueryjs.googlecode.com/svn-history/r6163/trunk/plugins/simulate/jquery.simulate.js"></script>
<form>
<input id="input1" type="text" value=""/>
<input id="input2" type="text" value=""/>
<button>Fire</button>
<input type="reset" id="resetbutton" value="X">
<pre></pre>
</form>
JavaScript
$(document).ready(function() {
function handler(e) {
$('pre').append(e.target.id + ' fired!' + '\n');
};
document.getElementById('input1').addEventListener('keyup', handler,true);
$('#input2').bind('keyup');
$('#resetbutton').click(function() {
$('input').simulate('keyup', handler);
});
});