摘要: 1.第一种方案 $("#addItems").on("keyup","[data-numbox=num]",function(){ this.value=this.value.replace(/[^\d\.]/g,""); }); $("#addItems").on("change","[data- 阅读全文
posted @ 2017-02-14 14:07 dazzlinglight 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Ok, here’s a fairly basic one – how to force a textbox to accept only numeric input. Somebody asked me this today on a support call so I did a few qui 阅读全文
posted @ 2017-02-14 11:20 dazzlinglight 阅读(157) 评论(0) 推荐(0) 编辑