Character Count in Textarea using Jquery

Count characters in textarea, Character Count in Textarea using Jquery, Character Count in Textarea using Javascript, JQuery text area character count, Word and Character Count using jQuery, TextArea character counter using jQuery, Character Counting Remaining on Textarea, How to count number of characters in textarea using jQuery, Live Word and Character Counter using jQuery, Textarea – Limit Word Count with jQuery

character-count-in-textarea-using-jquery.html

<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset="utf-8">
<title>Limit character input in the textarea including count</title>
<style type="text/css">
textarea {
display:block;
margin:1em 0;
} 
</style> 
</head>
<body>
<form>
<label>Maximum 50 characters</label>
<textarea id="textarea" maxlength="50"></textarea>
<span id="rchars">50</span> Character(s) Remaining
</form>
</body>
<script>
var maxLength = 50;
$('textarea').keyup(function() {
var textlen = maxLength - $(this).val().length;
$('#rchars').text(textlen);
});
</script>
</html>