随笔分类 -  Javascript

摘要:来源于网络收集!js验证表单大全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" 阅读全文
posted @ 2012-06-25 23:34 沉枫 阅读(238) 评论(0) 推荐(2)