Tigraine

Daniel Hoelbling-Inzko talks about programming

jQuery.Stepy select callback

Posted by Daniel Hölbling on August 2, 2011

I just stumbled upon a little issue while using jQuery.Stepy wizard plugin: There are callbacks for navigating, but there is simply no callback that gets fired when the current step is actually displayed. As it happens there are a number of things you may want to do once a wizard  step is shown like start animations or maybe initialize something. (And next/back get fired before validation happens so they don't actually work in case validation fails)

Thank god JavaScript is almost by definition open-source so I fixed this with the following pull request.

The select callback works just like the back/next callbacks:

$('#wizard').stepy({
  select: function (index) {
     //your code goes here
     //index is 1 based - not zero based
  }
});

Filed under programmierung, jquery
comments powered by Disqus

My Photography business

Projects

dynamic css for .NET

Archives

more