Monday, 31 October 2011

Count Number Of Characters in a Textarea Using JavaScript

Ever wanted to create a cool textarea or a text box that counts the number of characters in it just as in Twitter or some other sites. It is much easier to built one for your own site than you might have expected. With a simple javascript function, you can count the number of characters as you type and display it.
If you have a basic understanding in HTML and JavaScript, you could make one in a couple of minutes.
Here is a simple version of the complete code along with the required HTML tags.