代码
var checknumcontrols = new array("tbzipcode","tbphone1","tbphone2","tbphone3","tbseedoctorageyear","tbseedoctoragemonth",
"tbfatherbearage","tbmatherbearage","tbannualincome","tbgraviditynum","tbabortionnum","tbage","tbbornweight","tbweight","tbheight",
"tbvisitweight","tbvisitheight","tbvisitbodysurfacearea","tbvisitage","tbdefectsize","tbshuntingconditionno1","tbshuntingconditionno2","tbef","tbocclusionage",
"tboperationage","tbcost","tbcost1");
for(var j=0;j<checknumcontrols.length;j)
$(
"#"checknumcontrols[j]).keyup(function(){$(this).val($(this).val().replace(/[^\d\.-] /,""));});

jquery 验证文本框数字事件|有效|快捷 给控件绑定清楚非数字事件

posted on 2010-08-12 10:53 sanmao 阅读(969) 评论(3)    

feedback:
# re: jquery 验证文本框数字事件|有效|快捷 给控件绑定清楚非数字事件
2014-09-15 15:41 |
而让他人突然  回复  
  
# re: jquery 验证文本框数字事件|有效|快捷 给控件绑定清楚非数字事件
2014-09-15 15:44 |
234234234  回复  
  
# re: jquery 验证文本框数字事件|有效|快捷 给控件绑定清楚非数字事件
2015-06-13 10:08 |
更符合法规  回复  
  

只有注册用户后才能发表评论。


网站导航:
              
 

常用链接

留言簿(5)

jquery 验证文本框数字事件|有效|快捷 给控件绑定清楚非数字事件 -凯发k8网页登录

搜索

  •  

最新评论

阅读排行榜

评论排行榜

网站地图