Call the limit via javascript
| 1 2 |
|
| 1 2 3 4 5 6 7 |
|
| Name | Type | Default | Description |
|---|---|---|---|
| maxLength | number | 140 | The max number of characters that is allowed. Default value will be overriden with the element's maxlength attribute, and both will be overriden with the given option |
| counter | jquery selector | blank | The jquery selector of the element which shows the counter. Default is blank which means no counter is displayed |
| removeMaxLengthAttr | boolean | false | Whether or not removing the maxlength attribute of the input/textarea |
| threshold | number | 10 | The number of characters left before counter's color get changed |
| color | css color | 'red' | The color to which counter will be changed after number of remaining characters less than threshold |
Add data attributes to register an element with limit functionality
| 1 2 |
|