---
title: "RadioNodeList | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

# Interface RadioNodeList

The **`RadioNodeList`** interface represents a collection of elements in a

returned by a call to HTMLFormControlsCollection.namedItem().

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList)

interface RadioNodeList {  
    [length](#length): number;  
    [value](#value): string;  
    ["\[iterator\]"](#iterator-1)(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>;  
    [entries](#entries-1)(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<\[number, [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\]\>;  
    [forEach](#foreach-1)(  
        callbackfn: (  
            value: [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/),  
            key: number,  
            parent: [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>,  
        ) \=> void,  
        thisArg?: any,  
    ): void;  
    [item](#item-1)(index: number): [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/);  
    [keys](#keys-1)(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<number\>;  
    [values](#values-1)(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>;  
    \[index: number\]: [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/);  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.RadioNodeList))

-   [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>
    -   RadioNodeList

#### Indexable

-   \[index: number\]: [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)
    

##### Index

### Properties[](#properties)

[length](#length) [value](#value)

### Methods[](#methods)

[\[iterator\]](#iterator) [entries](#entries) [forEach](#foreach) [item](#item) [keys](#keys) [values](#values)

## Properties[](#properties-1)

### `Readonly`length[](#length)

length: number

The **`NodeList.length`** property returns the number of items in a NodeList.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)

Inherited from [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/).[length](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/#length)

### value[](#value)

value: string

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.

[MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value)

## Methods[](#methods-1)

### \[iterator\][](#iterator)

-   "\[iterator\]"(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>[](#iterator-1)
    
    #### Returns [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>
    
    Inherited from [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/).[\[iterator\]](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/#iterator)
    

### entries[](#entries)

-   entries(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<\[number, [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\]\>[](#entries-1)
    
    Returns an array of key, value pairs for every entry in the list.
    
    #### Returns [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<\[number, [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\]\>
    
    Inherited from [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/).[entries](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/#entries)
    

### forEach[](#foreach)

-   forEach(  
        callbackfn: (  
            value: [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/),  
            key: number,  
            parent: [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>,  
        ) \=> void,  
        thisArg?: any,  
    ): void[](#foreach-1)
    
    #### Parameters
    
    -   callbackfn: (  
            value: [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/),  
            key: number,  
            parent: [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>,  
        ) \=> void
    -   `Optional`thisArg: any
    
    #### Returns void
    
    Inherited from [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/).[forEach](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/#foreach)
    

### item[](#item)

-   item(index: number): [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)[](#item-1)
    
    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.
    
    [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)
    
    #### Parameters
    
    -   index: number
    
    #### Returns [HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)
    
    Inherited from [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/).[item](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/#item)
    

### keys[](#keys)

-   keys(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<number\>[](#keys-1)
    
    Returns an list of keys in the list.
    
    #### Returns [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<number\>
    
    Inherited from [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/).[keys](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/#keys)
    

### values[](#values)

-   values(): [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>[](#values-1)
    
    Returns an list of values in the list.
    
    #### Returns [ArrayIterator](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.ArrayIterator/)<[HTMLInputElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLInputElement/)\>
    
    Inherited from [NodeListOf](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/).[values](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.NodeListOf/#values)
