jQuery Modal表单的Submit按钮不起作用 [英] jQuery Modal form's Submit button is not working

查看:402
本文介绍了jQuery Modal表单的Submit按钮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个jQuery Modal表单,包含用户名,手机号码和电子邮件文本框以及一个按钮。模态形式的按钮不起作用。单击事件我没有在服务器端触发。有什么问题?

解决方案

要检查的事项:

i)输入类型是提交吗?

如果是,

ii)定义一个onclick事件。它将在呈现的HTML中显示click事件。

iii)点击它时是否禁用?

iv)是否有点击它的JavaScript函数点击返回false?



这些按钮不会触发服务器端事件的一些原因。如果这些代码没有用,你将需要显示你的代码。


它不会工作你需要实现webmethod来处理它,否则你可以使用Ajax工具包模型弹出窗口。它更好。

请看下面的链接



http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx [ ^ ]



谢谢

Manu v nath

Hi all,

I have a jQuery Modal form with username, mobile no and email textboxes and a button. The button in modal form is not working. Click event i not firing in server side. What is the problem?

解决方案

Things to check:
i) Is the input type 'submit'?
If yes,
ii) Have your defined an onclick event. It will show click event in the rendered HTML.
iii) Is it disabled when you are clicking it?
iv) Is there is JavaScript function called on it's click which returns false?

These the some of the reasons why a button won't fire a server side event. You will need to show your code if these don't help.


It wont work you need to implement webmethod to handle that or else you can use Ajax tool kit Model popup. Its better.
Please see below link

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]

Thanks
Manu v nath


这篇关于jQuery Modal表单的Submit按钮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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