disabled attribute javascript code example
Example 1: remove disabled attribute javascript
document.getElementById('my-input-id').disabled = false;
Example 2: howt to disable a select tag using js
document.getElementById("one").onchange = function () {
document.getElementById("two").setAttribute("disabled", "disabled");
if (this.value == 'car')
document.getElementById("two").removeAttribute("disabled");
};