Javascript Character Counter Demo

This form loads with some text already present in the textarea.

Enter up to 20 characters:

20 characters left

If you wish to count characters in multiple textareas on the same page you will have to assign unique id attributes to each textarea and to each span that will display the number of characters remaining. Simply appending a counter suffix should work nicely: text_fld_1, text_counter_1, text_fld_2, text_counter_2. Or perhaps if the textarea id is "description" the span id could be description_counter.

Close window