DOM Interfaces
HTMLFieldSetElement
Represents a group of controls, with a legend and a disabled state that can affect descendant controls. Controls inside the first legend are exempt from inherited fieldset disabling. Use a legend to identify the group. Example result: true.
Formal Syntax & Structure
html syntaxhtml
const element = document.getElementById('demo'); // HTMLFieldSetElementReturn Value
HTMLFieldSetElement
An existing HTML DOM object associated with the fieldset element in this example; this interface is a type, not a function return contract.
Working Example
Example Snippethtml
<fieldset id="demo" disabled> <legend>Account</legend> <input name="email"></fieldset><p> Result: <output id="result"></output></p><script> const e = document.getElementById('demo'); const result = value => { document.getElementById("result").textContent = String(value); }; result(e.disabled);</script>