JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text">
JavaScript
$( "input[type='text']" ).on('input propertychange',function(e) {
alert($( this ).val())
});
<input type="text">
$( "input[type='text']" ).on('input propertychange',function(e) {
alert($( this ).val())
});