HTML <fieldset> disabled Attribute

The disabled attribute on a <fieldset> tag disables the fieldset and all its child input controls. The controls appear grayed out and are unusable.

Example

#

A disabled attribute on a <fieldset> element.
All input elements inside the fieldset are unusable.

Customer Information


<form action="/tutorial/action.html">
  <fieldset disabled>
    <legend>Customer Information</legend>

    <label>Name</label>
    <input type="text" name="name"><br />
  
    <label>Age</label>
    <input type="text" name="age"><br />
  
    <label>Email</label>
    <input type="text" name="email"><br />

    <button type="submit">Submit</button>
  </fieldset>
</form>

Using disabled

The disabled attribute specifies that the fieldset is disabled.

The child input elements appear grayed out and are unusable.

Disabled input elements are excluded from form submission.


Syntax

<fieldset disabled>
or
<fieldset disabled="disabled">

Values

#

Value Description
disabled Use value 'disabled' or no value at all.

Browser support

Here is when disabled support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <fieldset>
Guides