Coders Packet

Character Limit Indicator using HTML, CSS and JavaScript

By Gaurav Tilwani

A character limit indicator, that tells about the characters left in the input. The input box turns red when limit is near. Built using HTML, CSS and JavaScript

This simple package is built on HTML, CSS and JavaScript. It contains a form in which a character limit is set (default is 60), one can change based on the requirements, the remaining characters required are displayed while the input is being typed in the input box.

When the limit is near, that is when 10 (can be modified) characters are left the indicator as well as the input box change to red. Extensive use of classes and the use of JavaScript to add or delete a classify from input box. Change relative paths when using.

Download Complete Code


No comments yet