完美解决MVC下使用jQuery UI Dialog Confirm不能确认
2011-04-29 10:58
585 查看
function showConfirmDialog(event) { if (!$(this).data("IsConfirmed")) { $("#dialog-confirm").data("button", this); $("#dialog-confirm").dialog('open'); return false; } else { $(this).data("IsConfirmed", false); return true; } } $(function () { $("#dialog-confirm").dialog({ resizable: false, modal: true, autoOpen: false, buttons: { 'Confirm': function (event) { $(this).dialog('close'); var button = $(this).data("button"); $(button).data("IsConfirmed", true); button.click(); }, Cancel: function () { $(this).dialog('close'); } } }); //Link or Button click $(".lkConfirm").data("IsConfirmed", false).bind("click", {}, showConfirmDialog); });
相关文章推荐
- 解决Select2控件不能在jQuery UI Dialog中不能搜索的bug
- JQueryUI dialog控件不响应服务端事件问题解决,dialog不能提交表单
- 解决Select2控件不能在jQuery UI Dialog中不能搜索的bug
- jquery ui dialog 中使用select2 导致select2的input失去焦点的解决方法
- jquery-ui之dialog的使用
- 完美解决android电子市场不能下载,Gtalk、Gmail不能正常使用
- SharePoint 2013中使用SP.UI.ModalDialog.showModalDialog时showModalDialog未定义的解决办法
- select2 asp.net mvc jquery.validate.js jquery.validate.unobtrusive.js不能完美结合问题
- 完美解决android电子市场不能下载,Gtalk、Gmail不能正常使用
- jQuery UI dialog 使用记录
- .net core 入坑经验 - 3、MVC Core之jQuery不能使用了?
- jQuery UI Dialog控件中的表单无法正常提交的解决方法
- jQuery解决IE6、7、8不能使用 JSON.stringify 函数的问题
- jQuery不能使用unbind解除超链接<a>的click事件的解决方法
- jquery UI dialog 缓存问题解决
- jQuery UI dialog 的使用
- ASP.Net MVC——使用 ITextSharp 完美解决HTML转PDF(中文也可以)
- jQuery UI dialog 的使用
- 【TaoTao】使用JQueryJsonp 完美解决JS跨域问题
- 使用 jQuery UI Dialog