摘要:
1.第一种方案 $("#addItems").on("keyup","[data-numbox=num]",function(){ this.value=this.value.replace(/[^\d\.]/g,""); }); $("#addItems").on("change","[data- 阅读全文
摘要:
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 阅读全文