jquery控制input只能輸入數字和兩位小數

限制只能輸入數字this <input type="text" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>  限制只能輸入數字、字母和"-"code <input type="text" onkeyup='value=value.replace(/[^A-Za-z0-9\-]+/g,"")'/> 限制只能保留兩位小數點input <in
相關文章
相關標籤/搜索