I can easily disable a javascript button, and it works properly. My issue is that when I try to re-enable that button, it does not re-enable. Here\'s what I\'m doing:
you can try with
document.getElementById('btn').disabled = !this.checked"