十进制数字的Java脚本验证 [英] java script validation on decimal number

查看:90
本文介绍了十进制数字的Java脚本验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我.

朋友,我想以这种十进制格式验证我的文本框值
00.0至99.0
表示小数点前两位和小数点后一位.
我还想限制字母和特殊字符.

Please help me.

Friends, I want to validate my textbox value in decimal format like this
00.0 to 99.0
means two digits before decimal point and one digit after decimal point.
I also want to restrict alphabet and special characters.

推荐答案

那么,出什么问题了?再一次,尽管我告诉您,您还是以粗体显示了您的问题. :doh:

使用正则表达式处理场景.试试吧!
So, whats the issue? And once again, inspite of me telling you, you posted your question in bold. :doh:

Use Regular Expressions handle the scenario. Try!


这篇关于十进制数字的Java脚本验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆