JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<label>last action: <span>blur</span></label>
</div>
<div>
<button>add field</button>
</div>
<input type="text" />
JavaScript
$('input').live('focus', function() {
$('label span').text('focus');
});
$('input').live('blur', function() {
$('label span').text('blur');
});
$('button').click(function() {
$('body').append($('<input />').attr('type', 'text'));
});