摘要: 常用HTML正则表达式 1.只能输入数字和英文的: <input onkeyup="value=value.replace(/[\W]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" ID="Text1" NAME="Text1"> 2.只能输入数字的: <input onk 阅读全文
posted @ 2011-11-10 09:16 shoupifeng 阅读(5388) 评论(0) 推荐(1) 编辑