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