Jquery验证插件问题, [英] Jquery Validate Plugin Issue,

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

问题描述

大家好,



我是JQUERY的新手并试图在我的页面中使用这个插件..我遇到了一些问题,想要讨论并得到你的善意的话来解决它们..



首先问题是关于错误排列问题,当第一次调用验证时,标签+ pic绝对显示在旁边控制,但如果我验证控件并转到下一步,而不是我回来更改内容,这个时间错误将显示在控件的底部.... :(



我该如何解决?



其次......如果我加上



成功:有效



IN jQuery.validator.setDefaults({



比在每个控件上调用有效类...但我想只在我在 $(#form1)中验证的控件上调用它.validate({方法......所以任何人都可以指导我????

解决方案

(#form1)。验证({方法......所以任何人都可以指导我这个????


Hi All,

I am new to JQUERY and trying to use this plugin in my page.. I am facing some problems and want to discuss and get your kind words on them to solve them..

First Problem is regarding error allignment issue, When validation is called for the first time label+pic is showing absolutely next to the control ,, but if i validate the control and go to next and than i come back to change content , than this time error would be showing at bottom of the control....:(

How can i Solve that???

Secondly... If I add

success: "valid"

IN jQuery.validator.setDefaults({

Than the valid class is getting called on each control .. but i want to get it called only on the controls which I am validating in $("#form1").validate({ method.... So Can any body guide me regarding that????

解决方案

("#form1").validate({ method.... So Can any body guide me regarding that????


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

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