xxxxxxxxxx
document.getElementById('my-input-id').disabled = false;
xxxxxxxxxx
// Makes the button disabled
document.getElementById("myButtonId").setAttribute("disabled", "");
// Removes disabled attribute
document.getElementById("myButtonId").removeAttribute("disabled");