JSFiddle - React, Tailwind, and code Playground
HTML
<input type=text>
<input type=text value="something">
JavaScript
// Fix lack of a change event on Enter in oldIE
if ( !jQuery.support.changeBubbles ) {
$("input[type=text]")
.on("change", function(e){
$.data(this, "value", this.value);
})
.trigger("change")
.on("keyup", function(e){
if ( e.which === 13 && this.value != $.data(this, "value") ) {
$(this).data("value", this.value).blur().focus();
}
})
}
// The "normal" change handler, attach after the patch above
$("input[type=text]").on("change", function(e){
$("body").append("<br>change "+this.value);
});