# Bootstrap Maxlength bootstrap maxlength

### Bootstrap Maxlength

A visual feedback indicator for the maxlength attribute.. For more info please check out the official documentation.

Bootstrap Input MaxLength
Actions
Default usage
Maxlength is 25 chars. The badge will show up by default when the remaining chars are 10 or less.
Change the threshold value
Maxlength is 25 chars. Do you want the badge to show up when there are 20 chars or less? Use the threshold option: `threshold: 20`
Advance usage
This is a complete example where all the options configured for the bootstrap-maxlength counter are setted. Please note: if the `alwaysShow` option is enabled, the `threshold`
Textarea
Bootstrap maxlength supports textarea as well as inputs. Even on old IE.
Position
The field counter can be positioned at the top, bottom, left or right. You can also place the maxlength indicator on the corners: `bottom-right`, `top-right`, `top-left`, `bottom-left` and `centered-right`. All you need to do is specify the `placement` option, with one of those strings.
Submit Cancel