资 源 简 介
This jQuery plugin will allow you to limit input into form fields. It can display a message as the user types to let them know how many characters/words they have remaining.
This is my first attempt at creating a jQuery Plugin, please feel free to give me advice. :)
The Input Limtier 1.3.1 adds option to count line returns as two (or more) characters. The new option is: lineReturnCount, and the value defaults to 1. If your system is storing a new line as two charaters in your database you can use this new option, by setting lineReturnCount to 2 it will count all line returns as two characters.
The Input Limiter 1.3 release fixes a few bugs and adds the new features: useMaxlength which allows you to leave off the limit option and the plugin will display the remaining text info based on the fields maxlength attribute, this option is on by default. Also added limitBy option which allows you to limit the field based on either characters or words.
The Inpu