Helping ordinary people create extraordinary websites!
   

How to limit in real-time the number of characters in textarea with JavaScript?

Thursday, 8th October 2009
by VistaXP


I have a textarea in my form that should allow the user to enter a maximum of 300 characters. I would like to use JavaScript to set this up so that while the user is entering characters into the textarea they are seeing a countdown of how many characters more they are able to add before they hit the limit. Thanks.





More JavaScript Help:
» Can you please tell me how to put different validations on a textfield.???
» Java script total beginner needs to link two fields
» How to do fingerprint with Javascript?
» I am trying to create a webpage where you click on the heading and infromation appears under the heading. How would I do this?
» How to use Javascript to produce a dynamic population clock?
» How to download free scripts?
» Catching up events outside an iframe
» How to add a floating sidebar like on the Mashable website?

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS


Developer Resources