selectedValue([value])

Class: RadioButton.

Description:

Gets or sets the selected value within this radio button group.

If a value is provided, selects the radio button in the same group that matches the given value (including this one).

Parameters:

Name Type Description

[value]

number | string

Value to select within the group.

Returns:

If value is provided, an instance of this object is returned. If no argument is provided, a value of the currently selected radio button in the group is returned, or null, if no button is selected or selected button doesn't have a value.

Type: RadioButton | number | string | null