一旦为元素创建了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插件)
答案 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"
}
});