Js

var maxLength = 100;
$('textarea').keyup(function() {
var length = $(this).val().length;
var length = maxLength-length;
$('#chars').text(length);
});

Html

No more than 100 characters

100 characters remaining

Advertisements