If you want to display the number of characters remaining in a text box in real time, I recommend Countable.js

Note that I recently learned of this.


A library that counts the number of characters and paragraphs.
The library is available at the following site. A demo is also available, so if you want to experience it right away, please try it once.

This is quite useful if you want to display "how many characters to go until 140 characters" in a form text box in real time.

Countable.js - Live word-counting in JavaScript

Screenshot 2013 11 10 8 58 34