Fieldset disabled property
Disable fieldset:
Output:
Email:
date of birth:
Try it out . . .
Definitions and usages
The disabled property sets or returns whether to disable a set of related form elements (a fieldet).
If the property is set, the form property in fieldset is disabled.
Disabled elements are not available and cannot be clicked. By default, disabled elements are usually grayed out in the browser.
This property reflects the HTML disabled property.
Browser support
In addition to Internet Explorer and Safari, other major browsers support the disabled property.
Grammar
Returns the disabled property:
Set the disabled property:
The property value
value | describe |
---|---|
true|false |
Specifies whether a set of related form elements (a Fieldset) is disabled.
|
Technical details
Return value: | Boolean value, if fieldset is disabled, returns true, otherwise false is returned. |
---|
More instances
Detect if a fieldet is disabled:
x The output is:
Try it out . . .
Disable and de-disable fieldset:
{
document.getElementById("myFieldset").disabled=true;
}
function undisableFieldset()
{
document.getElementById("myFieldset").disabled=false;
}
Try it out . . .
Related articles
HTML Reference Manual: HTML slt;fieldset-disabled properties