textarea 限制字符

[ 2006-04-18 19:29:27 | Author: zhenhua ]
Font Size: Large | Medium | Small
<textarea name="A" cols="45" rows="2" onKeyDown='if (this.value.length>=20){event.returnValue=false}'>123</textarea>

Comments Feed Comments Feed: http://www.zhenhua.org/feed.asp?q=comment&id=291
UTF-8 Encoding Trackback URL: http://www.zhenhua.org/trackback.asp?id=291

There is no comment on this article.

If you feel this site you find this information helpful, please click on the donation, which is voluntary,Thank you.
Post Comment
[arrow] [biggrin] [confused] [cool]
[cry] [eek] [evil] [exclaim]
[frown] [idea] [lol] [mad]
[mrgreen] [neutral] [question] [razz]
[redface] [rolleyes] [sad] [smile]
[surprised] [twisted] [wink]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code