Get to know MDN better
The remove() method of the HTMLOptionsCollection interface removes the <option> element specified by the index from this collection.
A zero-based integer for the index of the HTMLOptionElement in the HTMLOptionsCollection. If the index is not found the method has no effect.
None (undefined).
| HTML # dom-htmloptionscollection-remove-dev |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Oct 2, 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.