在javascript中验证 [英] validation in javascript
本文介绍了在javascript中验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在控制级别创建javascript验证?
例如:如果我创建了一个类型文本并且已经使用了仅使用电子邮件格式的验证..
使用正则表达式我已经验证了电子邮件格式....
现在我希望用户在输入错误时在控件级别的弹出窗口中收到消息格式... 通过不点击任何按钮他应该收到提醒信息
how can i create javascript validation at control level??
for example: if i have created a type text and has put a validation of using only email format..
using regular expression i have put the validation of email format....
now i want that the user should get a message in a pop-up-window at control level when he is typing wrong format...by not clicking any button he should get an alert message
推荐答案
你可以在email_textbox的text_changed事件上做到这一点......
试试吧......
you can do it on text_changed event of email_textbox...
try it...
这篇关于在javascript中验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文