Function I should use between Checkbox and Button on Wix

As title, I working on a simple page on Wix, and it is about users have to click on the checkbox to agree the term of use of the site before they press “continue” button. I am currently stuck, and the code I have is as follows Please let me if there is any solution to it. :grinning:

$w.onReady(function(){

let isChecked = $w("#checkbox1").checked; 
let isRequired= $w('#checkbox1').required; // true

if(isChecked === false)
{
    $w('#button1').disable;
}else{
    $w("#button1").enable;
}
});

https://russian-dima.wixsite.com/meinewebsite/enable-button-check

Thx it helps me a lot

@stevenyinwritingfirm :wink: