Enabling/Disabling Button using If/Then Login

This is the code I am using, where am I going wrong because the button appears to be unaffected.

$w.onReady( function () {
let remainingnos = (“#remainingnumber”).value;
if (Number(remainingnos) > 0) {
$w(“#buttonStart”).enable();
$w(“#startmessage”).show();
} else {
$w(“#buttonStart”).disable();
$w(“#startmessage”).hide();
}
})

What is (" #remainingnumber “).value ?
Do you mean $w (” #remainingnumber ").value ?

Changed it but nothing still happened.

So after the change, this code is fine, and the problem is somewhere else. Maybe the property id’s are wrong or something else. It’s not the code itself.

Thank you for your help, you were right!

Why are you still posting multiple posts about the same question :dizzy_face:

https://www.wix.com/corvid/forum/community-discussion/disabling-button