Latest web development tutorials

HTML fieldset disabled property

HTML fieldset Tag Reference HTML <fieldset> tag

Examples

Disabling a group of related form elements:

<fieldset disabled>
<legend>Personalia:</legend>
Name: <input type="text"><br>
Email: <input type="text"><br>
Date of birth: <input type="text">
</fieldset>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

In addition to Internet Explorer and Safari, the other major browsers support the disabled attribute.


Definition and Usage

disabled attribute is a Boolean attribute.

disabled should disable attribute specifies a set of form elements (a fieldset).

Disabled fieldset unavailable, nor click.

It can be set on the disabled attribute so that the user when certain conditions are met (for example, check the box, etc.) in order to use the input fields. Then, you can use JavaScript to remove the disabled value, so that the fieldset becomes usable state.


Differences between HTML 4.01 and HTML5

disabled attribute is <fieldset> tag in HTML5 the new property.


Differences between HTML and XHTML

In XHTML, prohibit attribute minimization, disabled attribute must be defined as <fieldset disabled = "disabled">.


grammar

<fieldset disabled>


HTML fieldset Tag Reference HTML <fieldset> tag