Disable a group of related form elements.
The disabled
attribute is a boolean attribute.
When present, it specifies that a group of related form elements (a fieldset) should be disabled.
A disabled fieldset is unusable and un-clickable.
The disabled
attribute can be set to keep a user from using the fields until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript could remove the disabled value, and make the fieldset usable again.
The numbers in the table specify the first browser version that fully supports the attribute.
<fieldset disabled>
Example:
HTML
<form>
<form action="/action_page.php">
<fieldset disabled>
<legend>Personalia:</legend>
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname"><br><br>
<label for="lname">Last name:</label>
<input type="text" id="lname" name="lname"><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email"><br><br>
<label for="birthday">Birthday:</label>
<input type="date" id="birthday" name="birthday"><br><br>
<input type="submit" value="Submit">
</fieldset>
</form>
</form>
How to create HTML <fieldset> Tag | HTML Tag |
Which browser will support for HTML <fieldset> Tag | HTML Tag |
Attributes for HTML <fieldset> Tag | HTML Tag |
How to Use CSS to style <fieldset> and <legend> | HTML Tag |
How to set Default CSS Settings for HTML <fieldset> Tag | HTML Tag |
How to add HTML <fieldset> disabled Attribute | HTML Tag |
How to add HTML <fieldset> form Attribute | HTML Tag |
How to add HTML <fieldset> name Attribute | HTML Tag |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |