diff options
author | Toby Zerner <toby.zerner@gmail.com> | 2022-02-01 09:40:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 09:40:59 +0300 |
commit | 22bbff0b037de5e4cf9a44273c4383a27b9f274e (patch) | |
tree | 7094d6ab32f4f360ed9363021d8dc4d00926ad77 /site/content/docs | |
parent | 9d44b603d5bc4380eba162d6c1b0b7b763ec607b (diff) |
Remove incorrect statement about the disabled attribute on <form> (#35713)
> You can disable every form element within a form with the `disabled` attribute on the `<form>`.
I really want to be mistaken, because this would be a very useful feature! But I don't believe it's true. I can't find anything about this on MDN Web Docs, and adding the `disabled` attribute to a `<form>` does nothing on any browser in my testing.
The `disabled` attribute on a `<fieldset>` does disable all descendant form controls – perhaps that's where the mixup has come from.
Diffstat (limited to 'site/content/docs')
-rw-r--r-- | site/content/docs/5.1/forms/layout.md | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/site/content/docs/5.1/forms/layout.md b/site/content/docs/5.1/forms/layout.md index 47e2f8ab7b..21423040e4 100644 --- a/site/content/docs/5.1/forms/layout.md +++ b/site/content/docs/5.1/forms/layout.md @@ -12,7 +12,6 @@ Every group of form fields should reside in a `<form>` element. Bootstrap provid - New to browser forms? Consider reviewing [the MDN form docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form) for an overview and complete list of available attributes. - `<button>`s within a `<form>` default to `type="submit"`, so strive to be specific and always include a `type`. -- You can disable every form element within a form with the `disabled` attribute on the `<form>`. Since Bootstrap applies `display: block` and `width: 100%` to almost all our form controls, forms will by default stack vertically. Additional classes can be used to vary this layout on a per-form basis. |