摘要: 1.动态复制文本框内容document.myForm.copyText.value = document.myForm.myText.value-------------------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()">& 阅读全文
posted @ 2012-08-30 14:19 hlp鹏 阅读(493) 评论(0) 推荐(0) 编辑