how to enable previous button of jquery steps for single wizard?

Issue

This Content is from Stack Overflow. Question asked by cr7oo

I want to enable/show previous button for only one tab.

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-steps/1.1.0/jquery.steps.min.js" integrity="sha512-bE0ncA3DKWmKaF3w5hQjCq7ErHFiPdH2IGjXRyXXZSOokbimtUuufhgeDPeQPs51AI4XsqDZUK7qvrPZ5xboZg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

if ($('#example-basic').length > 0)
                $("#example-basic").steps({
                    headerTag: "h3",
                    bodyTag: "section",
                    transitionEffect: "fade",
                    autoFocus: true,
                    saveState: true,
                    titleTemplate: "#title#",
                    labels:
                    {
                        finish: "Next",
                    },
                    
                    onFinished: function () {
                   
                    }
                });
<div class="container">
                <div class="row" id="mytab">
                    <div class="col-xl-12">
                        <div id="example-basic">                           
                            <h3>
                                <span class="wizard-icon-wrap"><i class="ion ion-md-podium"></i></span>
                                <span class="wizard-head-text-wrap">
                                    <span class="step-head">tab</span>
                                </span>
                            </h3>
                            <section>
                                @Html.Partial("Partialview")    
                            </section>
                        </div>
                    </div>
                </div>
     </div>

It count section tag and decided steps . but I only want to use one and need that previous button to show



Solution

Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?