Limit
Limit is a plugin for the javascript framework Jquery that limits the number of characters that can be entered in a textarea or input field. The plugin can also report the number of characters left before the user reaches the length limit.
How to use Limit
To use the full power of Limit you need two html elements; one textarea or input field and an element to show amount of characters left.
- You have <span id="charsLeft"></span> chars left.
- <textarea id="myTextarea"></textarea>
- <script type="text/javascript">
- $('#myTextarea').limit('140','#charsLeft');
- </script>
If you don’t want to show the amount of characters left you can do like this.
- $('#myTextarea').limit('140');
| Version | Changes |
|---|---|
| 1.2 | Optimized timed function and fixed an issue with flickering text |
3 days ago
Wow! I don’t even remember anymore how I managed before this new awesome boilerstrap. http://t.co/bWzwqVf2
3 days ago
If you like coding and competing and want to see Stockholm at its best; Checkout Escape from /dev/null – DICE edition. http://t.co/0SapzZxz
4 days ago
Last night @soe, @tussetor and I won #sthlmstartuphack and the best trophy ever. http://t.co/CJ15cNml
4 days ago
Thanks @kalasjocke, @martinaelm, @javve for a super fun event. Thanks @soe, @tussetor for being awesome teammates. #sthlmstartuphack
5 days ago
Going where none has gone before and pushing the boundaries of what has been called done. Mine, @soe, @tussetor #SthlmStartupHack app ≈Done
6 days ago
Selected map, data and chart tools. http://t.co/I7l6qq4O (via @VirUZI) So much joy in one single place!
7 days ago
How can Comic Sans make people buy your app? http://t.co/KYLGeIW2