如何在仅接受字母数字字符的文本框上应用验证 [英] how to apply validation on textbox that only accepts alphanumeric characters

查看:61
本文介绍了如何在仅接受字母数字字符的文本框上应用验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户只输入字符或仅输入数字或任何特殊字符,我想在仅接受字母数字字符的文本框上应用验证,则应显示仅允许使用字母数字字符的错误消息。如果用户输入少于6个字符或大于10个字符的字符,则密码长度应至少为6个字符,最大长度为10个字符,则错误消息显示密码长度必须至少为6个字符且不得为10个字符.plzzzz

尽快给我代码..谢谢!!

I want to apply validation on textbox that accepts only alpha numeric characters if the user enters only characters or only numbers or any special characters then error message should be displayed that only alphanumeric characters are allowed. and the password lengh should be minimum 6 charactes and maximum lenghth is 10characters if the user enters characters less than 6characters or greater than 10 characters then error message diaplay password length must be atleast 6 characters and not beyaond 10 characters.plzzzz
give me code for this as soon as possible..thank you!!

推荐答案

它不是那样的工作。

我们不为你工作。

如果你想要别人写你的代码,你必须付钱 - 我建议你去Freelancer.com并在那里问。



但要注意:你得到了你付出的代价。支付花生,买猴子。
It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.

But be aware: you get what you pay for. Pay peanuts, get monkeys.


这篇关于如何在仅接受字母数字字符的文本框上应用验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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