Javascript / Forms / Limit characters 2
This little diddy will limit text in a textbox or textarea. easy to use but IE only.
Browsers: IE5+
Browsers: IE5+
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Unknown
<!---Head--->
none
<!---Body--->
<form name="form1">
<textarea onKeyDown="if (this.value.length > 10) {return false;}"></textarea>
</form>
Subject: problem with above solution
Comment By: siddharth on Wed 22nd of June 2005 12:16:35 PM
I can not modify the text when it reaches the max limit 10
