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.

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-1be0a3f-54172.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-1be0a3f-54172.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?