摘要:
1. 长度限制:﹤ script ﹥function test() {if(document.a.b.value.length﹥50){alert("不能超过50个字符!");document.a.b.focus();return false;}}﹤/ script ﹥﹤form name=a onsubmit="return test()"﹥﹤textarea name="b" cols="40" wrap="VIRTUAL" rows="6"﹥﹤/textarea﹥﹤in 阅读全文