将EasyConfirm警报绑定到Jquery中的链接 [英] Binding EasyConfirm alerts to link in Jquery

查看:57
本文介绍了将EasyConfirm警报绑定到Jquery中的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



在我们的网站上,我们左侧面板包含快速链接。在特定情况下的这些快速链接中,我们使用确定和取消按钮绑定EasyConfirm警报。

这是boundeat PageLoad事件。



现在我们想根据没有PageLoad的条件绑定这些EasyConfirm。点击链接的点击事件。



任何人都可以帮助我。



以下是现有的代码 -



ShowConfirmForWarning(历史记录);



历史是链接,在ShowConfirmForWarning函数中我们是绑定EasyConfirm警报。



我试过如下,但没有工作



$(#历史)。点击(ShowConfirmForWarning());

$(历史)。点击(ShowConfirmForWarning());

$(历史)。追加( ShowConfirmForWarning());

$('history')。click(ShowConfirmForWarning());

$('#history')。on('click',ShowConfirmForWarning ());



谢谢。

Hello,

In our website we have left panel containing quick links. On these quick links in particular scenario we are binding EasyConfirm alert with "OK" and "Cancel" buttons.
This is boundeat PageLoad event.

Now we want to bind these EasyConfirm based on condition without PageLoad. Say on click event of link.

Can anyone helps me on this.

Below is the existing code -

ShowConfirmForWarning("history");

History is the link and in ShowConfirmForWarning function we are binding EasyConfirm alert.

I have tried as below, but not working

$("#history").click(ShowConfirmForWarning());
$("history").click(ShowConfirmForWarning());
$("history").append(ShowConfirmForWarning());
$('history').click(ShowConfirmForWarning());
$('#history').on('click',ShowConfirmForWarning());

Thanks.

推荐答案

(#history)。click(ShowConfirmForWarning( );;
("#history").click(ShowConfirmForWarning());


(history)。click(ShowConfirmForWarning());
("history").click(ShowConfirmForWarning());


(history) ).append(ShowConfirmForWarning());
("history").append(ShowConfirmForWarning());


这篇关于将EasyConfirm警报绑定到Jquery中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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