资 源 简 介
jMaxLength jQuery Plugin
This plugin allows a user to limit the number of characters in a form element. It Applies best for textarea elements as input text already have a maxlength attribute implemented.
Unlike most plugins,
* at the limit, when a user enters a new character, the text stays unchanged instead of being trimmed from the end.
* at the limit, commands to copy, cut, or delete are allowed. Paste is allowed if the text stays within the maximum number of characters.
**Usage**:
* Add the attribute maxLength="xx" to your element (textarea)
* Call the plugin $(selector).jMaxLength();
**Upcoming changes**:
* Character Counter
* Options (error class, error message, counter message)