🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A simple and configurable character countdown/counter plugin that shows and restricts the number of characters allowed to be typed in the text field by the user.

Character-Limit Character-Counter

Documentation

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


You May Also Like