disabled attribute prevents the user from
interacting with the form control to which it’s applied. In this case, it
stops the user from clicking on the
tabbing to it with the keyboard, so the user can’t activate the
The most likely use for this attribute is to disable a
checkbox until such a time as some other condition has
"disabled" value, making the form control usable
disabledattribute stops this checkbox
inputfrom being used:
<form> <input type="checkbox" name="chknewsletter" id="chknewsletter" checked="checked" disabled="disabled"/> <label for="chknewsletter">Send me the monthly newsletter</label> </form>
only possible value for this attribute. If the
should be enabled, simply omit the attribute entirely.
It causes no compatibility issues, and has excellent support across all tested browsers.
There are no comments yet.