<input id="form" type="checkbox" onclick="enableButton()" />
const button = document.querySelector('.btn')
const checkbox = document.querySelector('#form')
const enableButton = () => {
checkbox.checked
? (button.disabled = false)
: (button.disabled = true)
}