JS Character Count


The JS Character Count module is used for displaying the character count of an <input> or a <textarea>.

Optionally, it can also show the max number of characters allowed, as specified by the field's maxlength attribute.


Each instance of the JS Character Count module must contain at least the following markup:

js-char-count__input is the input element whose length should be counted. It can be a textarea or any textual input. js-char-count__count is the element whose inner text should be updated with the character count.


Basic Character Counter

Counter with Character Limit