The use of wizard plug-in wizard.js

(function() {
                $("-sharpservice_market_step").wizard({
                    validator: function(step) {
                        if($("-sharpagree").prop("checked") === true) {
                            return true;
                        } else {
                            alert("")
                            return false;
                            
                        }
                    },                 
                     onShow:function() {
                         $(".wizard-next").addClass("disabled")
                     }
                    
                });
            })();
            

clipboard.png

I want to disable the next button when the check box is not selected. Now the button is disabled, but it still seems to be clickable to the naked eye. How can I add a class to it

?

official website address

Aug.23,2021

you can work on the check box, make a judgment, add a class, to him through the js find next button before judgment, and then remove class when judging that the check box is true.

Menu