在文本框中显示验证消息 [英] show validation messages inside textbox

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

问题描述

请帮我在文本框控件中显示验证错误消息。我有一种方法可以做到这一点,但是当使用母版页时它无法正常工作。

Hi, pls help me to show validation error messages inside the textbox control. I have one method to do it but when using master page it is not working.

推荐答案

一个好的开始就是使用jQuery Form Validatior。您可以访问: http://formvalidator.net/#reg-form 查看文档及其示例。例子,他们也有一个CDN,所以你可以链接库。不要忘记Jquery在本地运行时可能无法显示预期的结果,所以请记住这一点(由于本地机器安全功能,所以你总是可以使用JsFiddle进行测试)
A good point to start would be to use jQuery Form Validatior. You can check the documentation and their example by going to: http://formvalidator.net/#reg-form it has various examples, and they also have a CDN so you can link the library. Do not forget that Jquery when run locally may not display the expected results, so please keep this in mind (due to local machines security features, so you can allways use JsFiddle for testing)


这篇关于在文本框中显示验证消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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