element, use the maxlength attribute. Older browsers don't support maxlength. Why is gravity different from other forces? Almost any standard character count for a textarea will work automatically. It creates ellipses and gracefully cut off words. $ (document ). Welcome to the 33rd Easy JavaScript tutorial, part of EasyProgramming.net. What will happen if a legally dead but actually living person commits a crime after they are declared legally dead? I've already defined the size of the cell as 'exactly #.##cm' so that it cannot expand in size, but that does not stop a user being able to type after the box is full. Capitalize the first letter but leave the rest as they are. But how is it possible to count and - if needed - to limit the number of lines in a textbox? In other word set the maximum length of textarea and display the number of remaining character … Limit the Number of Characters in a TextArea using JQuery : Today we come to you with very simple but effective article about jquery to limit the number of characters in textarea. A few of these are now hitting the 2000 and something character limit which stops the link opening the email program on some browsers. A string is a sequence of one or more characters that may consist of letters, numbers, or symbols. The purpose here is not to demonstrate the quick and dirty solution, but rather to fully understand how the code actually works. To add a multi-line text input, use the HTML