HTMLFormControlsCollection

The HTMLFormControlsCollection interface represents a collection of HTML form control elements, returned by the HTMLFormElement interface's HTMLFormElement.elements property.

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

Functions

Link copied to clipboard
open operator fun get(index: Int): Element
open operator fun get(key: Symbol.iterator): () -> JsIterator<Element>
Link copied to clipboard
open override fun item(index: Int): Element?

The HTMLCollection method item() returns the element located at the specified offset into the collection.

Link copied to clipboard
open inline operator fun iterator(): Iterator<Element>
Link copied to clipboard
fun namedItem(name: String): JsAny?

The HTMLFormControlsCollection.namedItem() method returns the RadioNodeList or the Element in the collection whose name or id match the specified name, or null if no node matches.