JSFiddle - React, Tailwind, and code Playground

by Sivasakthi Chandrasekaran

HTML

<textarea></textarea> <span id='remainingC'></span>

CSS

textarea {
    resize: none;
}

JavaScript

$('textarea').keypress(function(){

    if(this.value.length > 110){
        return false;
    }
    $("#remainingC").html("Remaining characters : " +(110 - this.value.length));
});