-
Notifications
You must be signed in to change notification settings - Fork 22.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New pages: html*element.disabled (#35966)
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "HTMLFieldSetElement: disabled property" | ||
short-title: disabled | ||
slug: Web/API/HTMLFieldSetElement/disabled | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLFieldSetElement.disabled | ||
--- | ||
|
||
{{ APIRef("HTML DOM") }} | ||
|
||
The **`disabled`** property of the {{domxref("HTMLFieldSetElement")}} interface is a boolean value that reflects the {{htmlelement("fieldset")}} element's [`disabled`](/en-US/docs/Web/HTML/Element/fieldset#disabled) attribute, which indicates whether the control is disabled. | ||
|
||
When disabled, all the form control descendants of the `<fieldset>` element, excluding elements that are descendants of the {{htmlelement("legend")}} child of the `<fieldset>`, if any, are disabled. A disabled element is unusable and un-clickable, and match the {{cssxref(":disabled")}} selector, even if their `disabled` property value is false. | ||
|
||
## Value | ||
|
||
A boolean value. | ||
|
||
## Examples | ||
|
||
```js | ||
const fs = document.getElementById("billing-address"); | ||
console.log(fs.disabled); | ||
fs.disabled = true; | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- HTML [`disabled`](/en-US/docs/Web/HTML/Attributes/disabled) attribute | ||
- CSS {{cssxref(":disabled")}} and {{cssxref(":enabled")}} pseudoclasses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "HTMLOptGroupElement: disabled property" | ||
short-title: disabled | ||
slug: Web/API/HTMLOptGroupElement/disabled | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLOptGroupElement.disabled | ||
--- | ||
|
||
{{ APIRef("HTML DOM") }} | ||
|
||
The **`disabled`** property of the {{domxref("HTMLOptGroupElement")}} interface is a boolean value that reflects the {{htmlelement("optgroup")}} element's [`disabled`](/en-US/docs/Web/HTML/Element/optgroup#disabled) attribute, which indicates whether the control is disabled. | ||
|
||
When disabled, the {{htmlelement("option")}} element descendants of the `<optgroup>` element are unusable, un-clickable, and unselectable. These disabled `<option>`s will match the {{cssxref(":disabled")}} selector, even if their `disabled` property value is false. | ||
|
||
## Value | ||
|
||
A boolean value. | ||
|
||
## Examples | ||
|
||
```js | ||
const optionGroup = document.getElementById("groupB"); | ||
console.log(optionGroup.disabled); | ||
optionGroup.disabled = true; | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- HTML [`disabled`](/en-US/docs/Web/HTML/Attributes/disabled) attribute | ||
- CSS {{cssxref(":disabled")}} and {{cssxref(":enabled")}} pseudoclasses |