I am playing around with one of the scripts on dynamicdrive.com, it is the one that limits a textarea and outputs how many characters are left. The script is located here (http://www.dynamicdrive.com/dynamici...limitinput.htm). Using the script provided on that page if I was to already have characters in the textarea like this:
The display of how many characters does not show that there are 9 characters gone, it still shows that there are 50 available until the user enters a character, then it displays how many are really left.Code:<form name="sampleform" action="post" method="test.html"> <textarea id="field1" name="field1" cols="50" rows="15">Text Here</textarea><br> <font face="Verdana" size="1">Max 50; characters remaining: <script>displaylimit("document.sampleform.field1", "", "50");</script>
I was wondering how could I have this script tell me how many characters are in the textarea at all times?



Reply With Quote

Bookmarks