Option Object
Disable the second option in a dropdown list:
The result will be:
The disabled property sets or returns whether an item/option in a dropdown list is disabled, or not.
A disabled element is unusable and un-clickable. Disabled elements are usually rendered in gray by default in browsers.
Set the disabled property:
Return the disabled property:
![]()
The disabled property is supported in all major browsers.
Option Object
Your message has been sent to W3Schools.