【问题标题】:jquery simpledialog2 button eventjquery simpledialog2按钮事件
【发布时间】:2013-12-20 06:40:10
【问题描述】:

我正在使用 simpledialog2 在移动设备中显示对话框。

defaultDialogConfig: {
    mode: 'blank',
    dialogForce: false,
    showModal: true,
    headerText: '',
    headerClose: true,
    animate: false,
    zindex: 9999,
    blankContent: '',
    themeDialog: 'b',
    themeInput: 'e',
    themeButtonDefault: false,
    themeHeader: 'a',
    callbackOpen: lockScreen,
    callbackClose: unlockScreen
},

调用这个 simpledialog2

var config = defaultDialogConfig;
                $.extend(config, {blankContent: response.address});
                var dialog = $(document.createElement('div'));
                dialog.simpledialog2(config);

在我的响应中,我们有一个按钮,我想向按钮添加一个事件。如何添加一个事件?

【问题讨论】:

标签: jquery jquery-plugins simpledialog


【解决方案1】:

我可以通过live解决。

$('#button').live("click",function () {
    alert("hi");
})

我将这段代码放在对话框显示下方。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-29
    • 1970-01-01
    • 1970-01-01
    • 2013-10-03
    • 2015-07-12
    • 2014-03-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多