【问题标题】:How I can disable anchor clickable on smartWizard plugin?如何禁用 smartWizard 插件上的可点击锚点?
【发布时间】:2017-07-03 15:23:34
【问题描述】:

我使用此代码,但是当我单击下一个按钮时,锚始终是可单击的。我想禁用锚点步骤导航。我怎么能做到这一点?这是我的初始化函数...

$('#smartwizard').smartWizard({

    onFinish: function () {
        $('#formTemplates').submit();
    },
    anchorSettings: {
        anchorClickable: false, // Enable/Disable anchor navigation
        enableAllAnchors: false, // Activates all anchors clickable all times
        markDoneStep: true, // add done css
        enableAnchorOnDoneStep: false // Enable/Disable the done steps navigation
    },      
});

【问题讨论】:

    标签: javascript jquery smart-wizard


    【解决方案1】:

    $('.anchor a').addClass('disabled'); $('.anchor a').unbind("click");

    我猜您可能正在使用尚未实现该功能的版本。 作为临时解决方案,我设法通过使用此代码来限制链接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-01
      • 1970-01-01
      • 2015-03-06
      • 2022-08-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多