UI Deploy

Curated, Short, Web UI Dev we Love.

Restrict Number of Characters with Live Character counter using jQuery

So you would have seen in various websites where users are not allowed to write messages/comments more than certain number of characters. They show you at run time how many characters have been left and you can type only specified number of characters. The best example you would be thinking of is Twitter. Yes you can tweet only up to maximum of 140 characters and it shows you in real time that how many characters you are left with. What if you also want to do something similar in your comment box, message system, or anywhere else in your website?

view source

Advertisement