mstratman / jQuery-Smart-Wizard

flexible jQuery plug-in that gives wizard like interface
http://mstratman.github.com/jQuery-Smart-Wizard/
303 stars 164 forks source link

Jump to n-step #79

Closed ucitelot closed 9 years ago

ucitelot commented 9 years ago

Is it posible instead next-step / previous-step to have option to jump to n-step

for example on 1st step i have button to jump to 3rd step ets.

none of the steps require validation

ucitelot commented 9 years ago

i figure out, so if someone need here it is

    $(".one-step").unbind("click").click(function(e) {
        e.preventDefault();
        wizardContent.smartWizard("goToStep",1);
    }); 
    $(".two-step").unbind("click").click(function(e) {
        e.preventDefault();
        wizardContent.smartWizard("goToStep",2);
    });     
    $(".three-step").unbind("click").click(function(e) {
        e.preventDefault();
        wizardContent.smartWizard("goToStep",3);
    });         
    $(".four-step").unbind("click").click(function(e) {
        e.preventDefault();
        wizardContent.smartWizard("goToStep",4);
    });