摘要: 不能为空 <input onblur="if(this.value.replace(/^ +| +$/g,'')=='')alert('不能为空!')">只能输入英文和数字<input onblur="if(/[^0-9a-zA-Z]/g.test(value))alert('有错')"><input onkeyup="value=value.replace(/[^0... 阅读全文
posted @ 2010-10-20 16:21 MR CO 阅读(951) 评论(0) 推荐(2) 编辑