Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2018.
The elements read-only property of the HTMLFieldSetElement interface returns an HTMLCollection object containing all form control elements (<button>, <fieldset>, <input>, <object>, <output>, <select>, and <textarea>) that are descendants of this field set.
You can access a particular form control in the returned collection by using either an index or the element's name or id attributes. If multiple form controls share the same name, as is common with a group of radio buttons, using the shared name returns the first element with that value.
An HTMLCollection.
| HTML # dom-fieldset-elements-dev |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Sep 20, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.