验证字母表 [英] Validation for Alphabets

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

问题描述

大家好,


我有一个文本框,想要像这样验证:


我想进入Numerics或字母数字在文本框中但不单独使用Alphabets。如果单独输入Alphabets则应该抛出Error。


请告诉......它非常紧急...

Thnaks in Advance,


Nitin Sharma

软件工程师

Hi All,

I have a text box and want to validate it like this:

I want to enter Numerics or alphanumerics in the text box but not Alphabets alone.If Alphabets alone entered then Error Should be thrown.

Please tell...Its very very Urgent...

Thnaks in Advance,


Nitin Sharma
Software Engineer

推荐答案

嗨...


玩这个:

hi ...

play with this:

展开 | 选择 | 换行 | 行号



hi ...


玩这个:

hi ...

play with this:

展开 | 选择 | Wrap | 行号


很明显......根据你的第一个要求:) ...


请发布您正在使用的客户端代码以及执行检查的位置。我想避免提交然后你的checkfunction除了警报之外应该返回false,否则它应该返回true ...但是我应该看看你现在如何使用这个检查...


亲切的问候
it is clear ... according to your first requirement :) ...

please post the client side code you are using and where the check is performed. i guess to avoid the submit then your checkfunction should return false in addition to the alert and otherwise it should return true ... but i should see how you use the check at the moment ...

kind regards


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

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