Let Wufoo do the hard work. Sign up for a free account and start making forms the easy way.
The Low Down
disabled attribute makes the
<fieldset> descendants non-editable and excludes the disabled form control data from being sent to the server.
- If the
disabledattribute is set on a
<fieldset>, the descendent form controls are disabled.
- A disabled field can’t be modified, tabbed to, highlighted, or have its contents copied. Its value is also ignored when the form goes thru constraint validation.
- The disabled value is Boolean, and therefore doesn’t need a value. But, if you must, you can include
- Setting the value of the
disabledattribute to null does not remove the effects of the attribute. Instead use
- You can target elements that are disabled with the
:disabledpseudo-class. Or, if you want to specifically target the presence of the attribute, you can use
input[disabled]. Similarly, you can use
input:not([disabled])to target elements that are not disabled.
- You do not need to include
aria-disabled="true"when including the
disabledattribute because disabled is already well supported. However, if you are programmatically disabling an element that is not a form control and therefore the
disabledattribute does not apply, include
disabledattribute is valid for all form controls including all
<textarea>, <button>, <select>, <fieldset>, and