使用JQUERY后,提交按钮被禁用 [英] Submit button got disabled after using JQUERY

查看:94
本文介绍了使用JQUERY后,提交按钮被禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI全部,



我在页面中使用了一些jquery,只是为了验证文本框字段,



但是这使得我的表单的提交按钮被禁用,意味着在提交按钮上调用了验证,但是它没有回发或者我的意思是提前发布....



我是JQUERY的新手,所以任何人都可以指导我如何解决这个问题,



我试过并发现如果我不使用这个参考JQUERY类/ api或其他任何形式,表单开始正常工作....





< script type = text / javascriptsrc =script / jquery.validate.js>< / script>



以下是我的链接得到了使用的代码。





http://www.c-sharpcorner.com/uploadfile/prathore/validation-using-jquery-with-asp-net/ [<一个HREF =HTTP://www.c-sharpcor ner.com/uploadfile/prathore/validation-using-jquery-with-asp-net/\"target =_ blanktitle =新窗口> ^ ]

HI All,

I am using a bit of jquery in my page, just to validate a textbox field,

but that is making my form's Submit button disabled, mean validations are being called on submit button but its not doing postback or i mean posting ahead....

I am novice to JQUERY, so can anyone guide me how to solve that,,

I have tried and found that If i dont use this reference of JQUERY class/ api or whatever it is called, form started working fine....


<script type="text/javascript" src="script/jquery.validate.js"></script>

Following is the link from where i got the code to use.


http://www.c-sharpcorner.com/uploadfile/prathore/validation-using-jquery-with-asp-net/[^]

推荐答案

终于在我的同伴的帮助下找到了解决方案...



分享它以备将来帮助其他人...



只需添加以下内容我的问题就解决了。



Finally Got a solution with the help of my fellow...

Sharing it for future help of other's here...

By simply adding the following my problem got solved.

submitHandler: function(form) {
        form.submit();
}







以下链接详细说明。



http://stackoverflow.com/questions / 11335992 / html-page-with-jquery-refuses-to-submit [ ^ ]





:)




Following link explains it in detail.

http://stackoverflow.com/questions/11335992/html-page-with-jquery-refuses-to-submit[^]


:)


这篇关于使用JQUERY后,提交按钮被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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