$w(‘#checkbox1’).onChange((event, $w) => {
if ($w(‘#checkbox1’).checked) {
$w(‘#image2’).show()
} else {
$w(‘#image2’).hide()
}
why is this not working
$w('#checkbox1').onChange((event) => {
if ($w('#checkbox1').checked) {
$w('#image2').show();
} else {
$w('#image2').hide();
}
});
Try this.
that does not work do you have any other solutions
Have you placed it inside of your onReady function?
If yes, then could you share screenshots of the errors you are facing?
Try adding console.log
statements and see if those are being executed when you change the checkbox.
i dont really not what that means