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.
$w.onReady(function(){
let isChecked = $w("#checkbox1").checked;
let isRequired= $w('#checkbox1').required; // true
if(isChecked === false)
{
$w('#button1').disable;
}else{
$w("#button1").enable;
}
});