jQuery验证错误. [英] Jquery validation error.

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

问题描述


我在asp.net应用程序中使用jQuery验证插件来验证表单.
我必须在表单上单击按钮,一个是检查验证并在验证成功后提交表单,另一个按钮是清除表单.我不希望单击取消"按钮时触发验证,但就我而言两个按钮均处于验证状态.当我单击取消"按钮时,谁能让我知道如何跳过验证.任何帮助都是非常可贵的.

Hi,
I am using jQuery validation plugin in my asp.net application to validate a form.
I have to buttons on the form, one is to check validation and submit the form if validation succeeds and the other button is to clear the form.I don''t want validation to get fired when I click on cancel button but in my case validation is firing for both the buttons. Can anyone let me know how to skip validation when i click on the cancel button. Any help is highly appreciable.

推荐答案



您可以像这样使用Jquery进行验证

Hi,

u can do validation using Jquery Like this


(document).ready(function(){
(document).ready(function () {


(' #<%= btnSave.ClientID%>').click(function(){ var txtValue =
('#<%=btnSave.ClientID %>').click(function () { var txtValue =


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

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