diff --git a/files/en-us/web/api/htmlfieldsetelement/disabled/index.md b/files/en-us/web/api/htmlfieldsetelement/disabled/index.md new file mode 100644 index 000000000000000..dc619fa0e5274b5 --- /dev/null +++ b/files/en-us/web/api/htmlfieldsetelement/disabled/index.md @@ -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 `
` element, excluding elements that are descendants of the {{htmlelement("legend")}} child of the `
`, 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 diff --git a/files/en-us/web/api/htmloptgroupelement/disabled/index.md b/files/en-us/web/api/htmloptgroupelement/disabled/index.md new file mode 100644 index 000000000000000..e068628ff97337f --- /dev/null +++ b/files/en-us/web/api/htmloptgroupelement/disabled/index.md @@ -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 `` element are unusable, un-clickable, and unselectable. These disabled `