如何在Jquery对话框中创建“提交”按钮 [英] How to create a Submit button in Jquery dialog

查看:46
本文介绍了如何在Jquery对话框中创建“提交”按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI ,,



我有一个对话窗口,并且有一个提交按钮,其中type =submit..每当我提交表单时,它都会触发任何行动。



http://s8.postimg.org/3quz7gvrp/ untitled.png [ ^ ]



以上链接将显示对话框窗口..

,

I have a dialog window and have a submit button with type="submit".. whenever i am submitting the form it is firing any action.

http://s8.postimg.org/3quz7gvrp/untitled.png[^]

above link will show u the dialog window..

推荐答案

我发现此代码正常工作...





I found this code working...


buttons: {

         buttons: {
         "Submit": function() {  alert('Submitting the form');},

         "Cancel": function() {


this )。dialog(' 关闭 );}
}
(this).dialog('close');} }


上面的代码将完成工作....
The above code will done the job....


这篇关于如何在Jquery对话框中创建“提交”按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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