textCounter - Twitter style input field character countdown jQuery plugin
Filed under: jQuery, textCounter
comments (2) Views: 3,789
I've been using jQuery for a long time, since mid to late 2006, and in that whole time I've never written a plugin for this wonderful JavaScript library. Well that's changed now with the release of textCounter, a Twitter style input field character countdown jQuery plugin. The company I now work for, Goba.mobi, had a need for this and so I jumped at the chance to knock it out. It solves a need for us, maybe it'll solve a need for you as well? You can hit the textCounter demo page to see it in action, as well as download both the production, and development versions.
If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!
Andy, this is pretty darn cool, thanks for sharing your code. I noticed you are listening to the keyup event which means the text counter doesn't update properly when you type something like ooooooooooooooooo. Thought I'd let you know about that one tidbit.
Aaron West - November 18, 2010 08:59 am
Thanks for the kind words Aaron, appreciated. I did notice that Aaron. I'm not really sure what I might be able to do to get around it. Changing to the keydown event would run into the same problem. I might try the change event, but we'll see.
andy matthews - November 18, 2010 12:52 pm