Character Counter
A character counter plugin for jQuery
Getting Started
This plugin works with all Bootstrap 4 form variations.
Install
Include jQuery and javascript files:
<script src="jquery-3.1.1.min.js"></script> <script src="character-counter.js"></script>
Usage
Get the id of the target input and specify the maximum character:
$('#input').characterCounter({ max: 100 });
Important: Character counter plugin does not stop writing, you must specify it in the input.
Options
You can make small adjustments on the plugin:
$('#input').characterCounter({ max: 100, opacity : ".8", color : "#363642" });
Demos
View all demos here
License
MIT License