Wednesday, October 14, 2009
Limiting Textarea length
3:59 PM |
Posted by
Sheen |
Edit Post
I just wrote a java script to limit the max length of a teaxtarea control.
Here is the code snippet.
Limiting Textarea length
<'textarea name="txaDescription" onkeypress="return maxLength(this, 250);" textarea>
and the javascript
function imposeMaxLength(Object, MaxLen)
{
return (Object.value.length <= MaxLen);
}
Here is the code snippet.
Limiting Textarea length
<'textarea name="txaDescription" onkeypress="return maxLength(this, 250);" textarea>
and the javascript
function imposeMaxLength(Object, MaxLen)
{
return (Object.value.length <= MaxLen);
}
Labels:
Limiting Textarea length
Subscribe to:
Post Comments (Atom)
Blog Archive
Important Blogs
-
-
Git Workflow For Enterprise development6 years ago
-
Watch Live Cricket Online Free14 years ago
-
-
-
-
0 comments:
Post a Comment