注册页面的jquery验证 [英] jquery validation for registration page
问题描述
大家好,
因为我总是从代码项目中找到最好的解决方案.
所以今天我在验证方面遇到了问题.实际上,我有一个注册表,我想使用jquery验证.
在我的注册页面中,有一些字段,例如,电子邮件ID,密码,国家/地区,州,城市,年龄,性别等.所以我想用jQuery验证来验证所有字段.并且验证应该在内联验证中.我不想显示/使用任何弹出窗口.摘要等,只想应用内联验证.
谢谢大家.
并请帮助我.
hello everyone,
as i always find the best solution from code project.
so today i have a problem with validation. actually i have a registration form and i want to use jquery validation.
in my registration page there are some fields like, email id, password ,country,state,city,age ,gender and etc . so i want to validate this all fields with jquery validation. and validation should be in the inline validation . i don''t want to show/use any popup. summary etc , only want to apply inline validation.
thank you all..
and please help me.
推荐答案
(函数(){
(document).ready(function () {
(" ).validate({ 规则:{ txt_mail:{ 电子邮件:真, 必需:真 } } });
("#form1").validate({ rules: { txt_mail: { email: true, required: true } } });
其中,form1是您的表单名称,txt_mail是您的文本框名称
Where form1 is ur form name and txt_mail is ur textbox name
这篇关于注册页面的jquery验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!