jquery-steps
jquery-steps copied to clipboard
Problem with function getOptions(wizard) and getState(wizard)
When calling function, get error getOptions() is not defined
$.fn.steps.incomplete = function (i) {
var wizard = this,
options = getOptions(this),
state = getState(this);
if (i < state.stepCount) {
var stepAnchor = getStepAnchor(wizard, i);
stepAnchor.parent().addClass("disabled");
stepAnchor.parent().removeClass("done")._enableAria(false);
refreshSteps(wizard, options, state, i);
}
};
I have the same problem. Please help.
What I am thinking is: you added function at the end of file jquery.steps.js that's way unable to detect getOption.
You must add this function before this line. })(jQuery);