This tutorial will help you to add more functionality to your forms that leads to better user experience and better website quality.
Let’s start with some brief explanation of what are we going to do.
Both case will use the same code to put scripts to your document.
I chose second option so make separated script file (js/script.js) for our main_file.
Short code and useful thing: Once you have placed it, you can run it using method presented in previous step (also there is example of usage described).
This script checks how many characters did you use (each time you use one) and how many are allowed by text field’s maxlength parameter, then it changes value between the div tags.