JSFiddle - React, Tailwind, and code Playground
by arpit
HTML
<textarea></textarea>
<div id="output"></div>
CSS
#output { color: gray; }
textarea { width: 500px; height: 100px; }
JavaScript
$('textarea').change( function() {
$('#output').html($(this).val().length + ' characters');
});
$('textarea').bind('input propertychange', function() {
$('#output').html($(this).val().length + ' characters');
});