jQuery Max Length can count up or count down the text entered in a textarea or input field.
When counting down the text can be stopped when reaching 0, or it can enter negative values if the developer doesn't want to truncate the user's text.
If counting up, a limit can be applied and when that limit is reached, the same action can be performed, blocking the user's input or going over the margin but not validating the field when submitted.
jQuery Max Length can work with text entered in real-time updating the counter after each keystroke, but it can also work with copy-pasted blocks of text.
A simple demo is included with the download package.
What is new in this release:
- Updated underlying plugin framework
- Marker class changed from hasMaxlength to is-maxlength
What is new in version 1.1.0:
- Added onFull callback
- Amalgamated 'change' and 'settings' commands into 'option' command
- Added 'enable', 'disable', and 'curLength' commands
- Updated underlying plugin framework
What is new in version 1.0.3:
- Made counting of CR/LF consistent.
- Set alternate feedback correctly.
- Return cursor to bottom of textarea when truncating.
What is new in version 1.0.2:
- Added truncate and overflowText settings.
- Added 'active' option for showFeedback.
- Added feedbackTarget setting.
- Corrected handling of special characters when full.
What is new in version 1.0.1:
- Added settings command.
Requirements:
- JavaScript enabled on client side
- jQuery 1.7 or higher
Comments not found