Jquery Steps : Disable tabbed navigation

5.7k Views Asked by At

It's the first time I post here, even if I've been using this site for quite a long time now. Here is my issue : I'm using jquery-steps to create a validation/checkout form and I'd like to disable tab navigation, which allows users to jump between steps freely (from step 1 to step 3 for example). The tabs have to remain visible.

I realize that the solution might be quite simple, but I'm really stuck for now :/ ...

Thanks for your help, please excuse any english mistake !

3

There are 3 best solutions below

1
On BEST ANSWER

Have you already checked out the examples of jquery-steps.com? If not, check out the advanced form example here! See also this blog article which describes How to create a Form Wizard using jQuery Steps in detail.

0
On

Ok, after some extended research, I managed to find an alternative solution to my problem. I noticed that all headers are stored inside a ".steps" div. Thus, I added a new CSS property :

.steps {
  pointer-events: none;
}

which disables all mouse actions for that particular class. I know it's not the cleanest solution possible but hey, it works for me :) !

(thx for your help rafael)

0
On

Ran into the same problem today and managed to fix it by adding disabled class to the li elements inside the div.steps. Using pointer-events CSS was not a solution for me as had to disable certain step navigations at certain points. Although this approach might break your CSS i.e. if you have disabled and done classes and disabled styles are overwriting the done ones, nothing a bit of tweaking won't fix though.