HTML and fieldsets and disabled properties
If a set of form elements uses the disabled property, the group of form elements is disabled, refer to the following example:
Disable a set of related form elements:
<legend>个人信息:</legend>
姓名: <input type="text"><br>
邮箱: <input type="text"><br>
生日: <input type="text">
</fieldset>
Try it out . . .
Browser support
In addition to Internet Explorer and Safari, other major browsers support the disabled property.
Definitions and usages
The disabled property is a Boolean property.
The disabled property states that a set of form elements (one fieldet) should be disabled.
The disabled fieldset is not available and cannot be clicked.
You can set the disabled property so that users can use input fields when certain conditions are met, such as check boxes, and so on. You can then use JavaScript to remove the disabled value and make the fieldset available.
The difference between HTML 4.01 and HTML5
The disabled property is the new property in HTML5 for the label.
The difference between HTML and XHTML
In XHTML, the property is prohibited from minimizing, and the disabled property must be defined as the "disabled" of the .lt;fieldset disabled.
Grammar
HTML slt;fieldset.tags