0

I'm using this jquery plugin;

https://github.com/rstaib/jquery-steps

and I want to create my own next and previous button inside my container or another place .

plugin has documentation page https://github.com/rstaib/jquery-steps/wiki but I couldn't find way how to do it ?

edit: I don't want to change name of button.I want to create my own next and previous button in my container thanks.

ani_css
  • 2,118
  • 3
  • 30
  • 73

1 Answers1

2

I did this so I created this new function:

function _goToStep(wizard, options, state, index)
{
    return paginationClick(wizard, options, state, index);
}

And the call that is not implemented, put this:

$.fn.steps.setStep = function (step)
{

    var options = getOptions(this),
        state = getState(this);

    return _goToStep(this, options, state, step);

};

Just taking advantage of what already existed plugin.

Use:

wizard.steps("setStep", 1);

You may look for http://www.jquery-steps.com/Examples on "Advanced Form Example". it may help you.

Deepak Sharma
  • 1,117
  • 1
  • 12
  • 22