Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Text limiter for form fields 0.1.0


Download: textlimit.js_0.txt
Size: 1.38 KB
md5_file hash: e6688d2ba5d847cf95eeec061db2109e
First released: October 25, 2007 - 4:22am
Last updated: October 25, 2007 - 4:25am
  • Counts down the number of characters left. (via thelimit)
  • Prevent user from typing more than allowed number of chars.
  • Trims the text if string is too long, 2 modes: char by char, and at once. (via speed = -1 for "at once" trim)

html example:

<script>
  jQuery("textarea").textlimit('span.counter',20);
</script>
<form>
  <span class="counter"></span>
  <textarea cols="40" rows="10"></textarea>
</form>