how to add or remove disable attribute in javascript code example Example: remove disabled attribute javascript document.getElementById('my-input-id').disabled = false;