一旦jQuery对象启动,之后如何访问它?

时间:2013-04-10 14:07:29

标签: jquery jquery-plugins jwizard

一旦为元素创建了jQuery对象,我该如何访问它?例如,使用jWizard jQuery创建以下对象,但我需要在此对象上调用一些函数,但我不知道从哪里开始。任何帮助将不胜感激。

$("#wizard").jWizard({
        menuEnable: true,
        counter: {enable: true},
        effects: {enable: true},
        buttons: {
            cancelHide: false,
            cancelType: "button", 
            finishType: "submit", 
            cancelText: "Cancel", 
            previousText: "Back",
            nextText: "Next", 
            finishText: "Submit"
        }
    });

来源: http://www.dbarnes.info/jWizard/(jWizard jQuery插件)

1 个答案:

答案 0 :(得分:1)

将其分配给变量:

my_wizard = $("#wizard").jWizard({
    menuEnable: true,
    counter: {enable: true},
    effects: {enable: true},
    buttons: {
        cancelHide: false,
        cancelType: "button", 
        finishType: "submit", 
        cancelText: "Cancel", 
        previousText: "Back",
        nextText: "Next", 
        finishText: "Submit"
    }
});