RadioNodeList

The RadioNodeList interface represents a collection of elements in a

returned by a call to HTMLFormControlsCollection.namedItem().

MDN Reference

Properties

Link copied to clipboard
abstract val length: Int
Link copied to clipboard

If the underlying element collection contains radio buttons, the RadioNodeList.value property represents the checked radio button. On retrieving the value property, the value of the currently checked radio button is returned as a string. If the collection does not contain any radio buttons or none of the radio buttons in the collection is in checked state, the empty string is returned. On setting the value property, the first radio button input element whose value property is equal to the new value will be set to checked.

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun forEach(action: (item: HTMLInputElement) -> Unit)
Link copied to clipboard
open operator fun get(index: Int): HTMLInputElement
open operator fun get(key: Symbol.iterator): () -> JsIterator<HTMLInputElement>
Link copied to clipboard
fun item(index: Int): HTMLInputElement?

Returns a node from a NodeList by index. This method doesn't throw exceptions as long as you provide arguments. A value of null is returned if the index is out of range, and a TypeError is thrown if no argument is provided.

Link copied to clipboard
abstract fun keys(): JsIterator<JsInt>
Link copied to clipboard