首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >使用jQuery- step转到自定义步骤

使用jQuery- step转到自定义步骤
EN

Stack Overflow用户
提问于 2013-11-13 23:16:34
回答 14查看 55.7K关注 0票数 25

我在我的应用程序上使用jQuery-steps来处理类似向导的情况。不过,我在寻找如何更改为自定义步骤时遇到了麻烦。这个问题有什么帮助吗?

$(function () {
    $("#wizard").steps({
        headerTag: "h2",
        bodyTag: "section",
        transitionEffect: "slideLeft",
        enableFinishButton: false,
        labels: {
            next: $('#next').html(),
            previous : $('#previous').html()

        },
        onStepChanged: function (event, currentIndex, priorIndex)
        {
            if( priorIndex == 0) {
                var selected = $('input[name=radio_wizard]:checked', '#radio_wizard').val()
                switch( selected ){
                    case 1:
                        // GOTO 1 
                        break;
                    case 2:
                        // GOTO 2 
                        break;
                    case 3:
                        // GOTO 3 
                        break;
                }
            }
      }
}

如何做到这一点?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19957432

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档