JSFiddle - React, Tailwind, and code Playground
by Alexey Demin
HTML
<div></div>
JavaScript
$(document).ready(function() {
$input = $('<input type="text">');
$input.change(function() {
console.log('on element: ', this.value);
});
$("div").append($input);
})
.on('change', 'input', function(e) {
console.log('on document: ', e.target.value);
});