Steps.js step bar click question?

 
 <script>
    var steps1 = steps({
            el: "-sharpsteps1",
            data: [
                { title: "1", description: "",customHtml: "<div>1</div>"},
                { title: "2", description: "",customHtml: "<div>1</div>"},
                { title: "3", description: "",customHtml: "<div>1</div>"},
                { title: "4", description: "" ,customHtml: "<div>1</div>"}
            ],
            sides: "start-single",
            iconType: "bullets",
            center: true,
            active: 0
    });
    $(function(){
        $(".steps-row-center .step:eq(0)").on("click",function(){
            steps1.setActive(0);
        });
        $(".steps-row-center .step:eq(1)").on("click",function(){
            steps1.setActive(1);
        });
        $(".steps-row-center .step:eq(2)").on("click",function(){
            steps1.setActive(2);
        });
        $(".steps-row-center .step:eq(3)").on("click",function(){
            steps1.setActive(3);
        })
    })
</script>

above var defines the plug-in method, active is the status of the step bar, represents the progress bar, num type, I now click on each circle event (circles are the same class), plug-in to the method can set the value of active, steps1.setActive (num) can set its value, but I give the click event only the first click effective, the second click has no effect. What"s the answer?

Dec.22,2021

it feels like it's been replaced. Try this

.
$(".steps-row-center").on("click", ".step:eq(0)",function(){
    steps1.setActive(0);
});

how does the blogger solve it? I have the same problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea23dc-46901.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea23dc-46901.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?