摘要: 如何清除文本框中的内容:1.设置文本框的默认值 <input name ="name" value="张三"> <input name="password" value="123">2.判断,清空文本框内容的函数 function cls(){ with(event.srcElement) if(value==defaultValue)value=""}3.判断,还原文本框内容的函数 function res(){ with(event.srcElement) if(va 阅读全文
posted @ 2013-06-21 17:31 gexiaomin 阅读(1771) 评论(0) 推荐(0) 编辑