验证最多9或10位数字. [英] validatation of max 9 or 10 digits.

查看:109
本文介绍了验证最多9或10位数字.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我有一个文本框,我必须对其进行模糊验证,使其只能输入9或10个数字

&另一个文本框必须通过
进行验证
我正在使用asp classic.well,现在我有一个文本框,我必须对其进行模糊验证,使其只能输入9或10个字母数字

两者都应位于 onblur

我正在使用经典的ASP

well now i have a textbox ,i have to validate it on blur that it must enter only 9 or 10 number of digits

& another textbox has to be validate by

I am working in asp classic.well now i have a textbox ,i have to validate it on blur that it must enter only 9 or 10 number of alphanumeric

both should be at onblur

I am using classic asp

推荐答案

您可以使用 length [ ^ ]属性以验证文本框在 onchange中输入 [ isNaN() [
You can use length[^] property in JavaScript to validate the text box input in onchange[^] event.
You can use isNaN()[^] to check if the value entered is numeric or not.


您可以使用以下属性的maxlenth属性文本框,通过使用此属性,您可以选择长度.
you can use maxlenth property of textbox, by using this property you are able to give length of your choice.


这篇关于验证最多9或10位数字.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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