JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<textarea id="textarea" cols="15" rows="2"></textarea>
</div>
<div id="output"></div>
CSS
div {
display:block;
}
JavaScript
$(document).ready(function () {
$('#textarea').change(function () {
if ($.trim($('#textarea').val()).length < 1) {
$('#output').html('Someway your box is being reported as empty... sadness.');
} else {
$('#output').html('Your users managed to put something in the box!');
//No guarantee it isn't mindless gibberish, sorry.
}
});
});