jQuery Text Area Character Counter CodeUnit 20 MAR 2010

Aaron Russell has gone and created a huge time saving jQuery plugin for us all to use in the form of his nifty jQuery Simply Countable plugin which basically provides a character counter for any text input or textarea box.

Using it is as simple as going

$(‘#my_textarea’).simplyCountable();

but it comes packed with loads of extra settings which allow you to specify the actual counter jQuery selector, what to actually count, how many of that thing to count and whether or not we can allow people to exceed the limit for example.

It comes released under both the MIT and GPL licenses and it is hosted on  GitHub, the home of social coding.

The following is a screenshot of it in action:

Note the counter at the bottom left of the image. Obviously you could style this to whatever you want.

Thanks Russell, a great little plugin that saved me some valuable time creating the same functionality from scratch! :)

Related Link: http://github.com/aaronrussell/jquery-simply-countable

About Craig Lotter

Software developer, husband and dad to two little girls. Writer behind An Exploring South African. I don’t have time for myself any more.