代码
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 阅读(1012) 评论(3)  编辑  收藏

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

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


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜