An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

#jquery-textlimit [![Build Status](http://img.shields.io/travis/cfreear/jquery-textlimit.svg?branch=master&style=flat-square)](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)