HTML DOM Select disabled property
Examples
Example 1
Disable the drop-down list:
<script>
document.getElementById("mydrop").disabled=true;
</script>
document.getElementById("mydrop").disabled=true;
</script>
Output:
Cats
Dogs
try it"
Definition and Usage
disabled property sets or returns whether the drop-down list of finance.
Disabled input elements are neither available, nor click. You can set the disabled property until meet certain other conditions are met (such as selecting a checkbox, etc.).
grammar
Set the disabled attribute:
element .disabled=true|false
Returns disabled properties:
element .disabled
Browser Support
All major browsers support disabled property
Select Objects