https://github.com/cfreear/jquery-textlimit
A simple plugin to restrict text inputs to specific word limits.
https://github.com/cfreear/jquery-textlimit
Last synced: 4 months ago
JSON representation
A simple plugin to restrict text inputs to specific word limits.
- Host: GitHub
- URL: https://github.com/cfreear/jquery-textlimit
- Owner: cfreear
- License: unlicense
- Created: 2014-09-15T19:13:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-22T08:58:48.000Z (over 10 years ago)
- Last Synced: 2026-02-04T09:59:53.267Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#jquery-textlimit [](https://travis-ci.org/cfreear/jquery-textlimit)
A simple plugin to restrict text inputs to specific word and/or character limits.
##Usage
###Options
```javascript
$('#mytext').textlimit({wordlimit:5});
```
###Data attributes
Using data attributes allows you to specify the options for inputs individually:
```html
```
Initialised by:
```javascript
$('.textlimit').textlimit();
```
##License
[unlicense.org](http://unlicense.org/UNLICENSE)