The disabled attribute on a <fieldset> tag disables the fieldset and all its child input controls.
The controls appear grayed out and are unusable.
A <fieldset> element with a disabled attribute.
All input elements inside the fieldset are unusable.
<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>
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.
<fieldset disabled>
<fieldset disabled="disabled">
Value | Description |
---|---|
disabled | Use value 'disabled' or no value at all. |
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 |
Back to <fieldset>