How can I make it so that I can limit the amount of characters within a textarea and make a small text field that shows how many characters are currently typed in the field?
That only works when a key is pressed...in other words, if something is copied and pasted, it won't work. If I change the event to OnChange, it works, except only when I Blur to textarea. Any suggestions?
<input type=text maxchar=30 name=" text Box With Only Thirty Characters">
then, also, use luciddream's function.
theEclipse
eclipse_web@hotmail.com
robacarp.webjump.com
**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
But how can you make it so that it places the amount of characters in the textbox if there is already a value in the box? For example, I want the textbox to show how many chars. are in the textarea when the page is loaded (as well as how many when a char. is typed) but the text field doesn't reflect the initial value of chars. in the textarea. Do I want to use an OnLoad?
because "othobj" is not "document.frm.textbox" in ns !!!! in another of your threads you have the answer on how to refer to form elements in ns
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.