I have the following code, and I\'m kind of stuck on what to do next. The idea is when you enter text into a text area a counter tells you how many characters you have left.
Try this. Even works for copy paste from Keyboard:
$("#comments").unbind('keyup').keyup(function(e){
var val = $(this).val();
var maxLength = 1000;
$('#comments').val((val).substring(0, maxLength));
$("#comments_length").text($("#comments").val().length);
});