HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
HTML <optgroup> tag : A disabled option-group
The disabled
attribute is a boolean attribute.
When present, it specifies that an option-group should be disabled.
A disabled option-group is unusable and un-clickable.
The disabled
attribute can be set to keep a user from selecting the
option-group until some other condition has been met (like selecting a checkbox,
etc.). Then, a JavaScript is required to remove the disabled value, and make the
option-group selectable.
The numbers in the table specify the first browser version that fully supports the attribute.
Attribute | |||||
---|---|---|---|---|---|
disabled | Yes | 8.0 | Yes | Yes | Yes |
❮ HTML <optgroup> tag