button.disabled = true;
input.addEventListener('input', function (event) {
let val = event.target.value;
if (val === '') {
button.disabled = true;
} else {
button.disabled = false;
}
});