JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="story" name="story" rows="5" cols="33">
Once upon a time...
</textarea>
JavaScript
$(document).ready(function() {
$('#story').on('input', (event) => alert('Changed!'));
});
<textarea id="story" name="story" rows="5" cols="33">
Once upon a time...
</textarea>
$(document).ready(function() {
$('#story').on('input', (event) => alert('Changed!'));
});