正則表達式限制輸入框輸入

轉載自:http://www.cnblogs.com/xiaosuo/archive/2010/01/05/1639547.htmlhtml 正則表達式限制輸入框只能輸入數字  <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.re
相關文章
相關標籤/搜索