A group of radio buttons. Only one radio button inside the group can be selected at a time. The radio
buttons may either direct children of the radiogroup
or descendants. Place the radiogroup
inside a groupbox
if you would like a border or caption
for the group. The radiogroup
defaults to vertical orientation.
More information is available in the XUL tutorial.
<radiogroup> <radio id="orange" label="Red"/> <radio id="violet" label="Green" selected="true"/> <radio id="yellow" label="Blue"/> </radiogroup>
disabled
command
event will not fire. In the case of form elements, it will not be submitted. Do not set the attribute to true
, as this will suggest you can set it to false
to enable the element again, which is not the case.
disabled
attribute is allowed only for form controls. Using it with an anchor tag (an <a>
link) will have no effect.disabled
property which, except for menus and menuitems, is normally preferred to use of the attribute, as it may need to update additional state.focused
true
if the element is focused.preference
preference
. This attribute only has any effect when used inside a prefwindow
. More information is available in the Preferences System article.tabindex
tab
" key. Elements with a higher tabindex
are later in the tab sequence.value
menulist
elements, the contents, as visible to the user, are read and set using the Menulist.value syntax. For those elements, setAttribute("value", myValue) and getAttribute("value") do not access or affect the contents displayed to the user.accessibleType
focusedItem
radio
elementradiogroup
, which may or may not be the same as the selected item. You can change the focused item by setting this property.itemCount
selectedIndex
-1
to this property, all items will be deselected. Returns -1 if no items are selectedselectedItem
null
. You can select an item by setting this value. A select event will be sent to the controlling container (i.e. the listbox, richlistbox, radiogroup, etc., not the list item that was selected) when it is changed either via this property, the selectedIndex
property, or changed by the user.value
value
attribute. For textbox
and user editable menulist
elements, the contents, as visible to the user, are read and set using the Textbox.value
and Menulist.value syntax.appendItem( label, value )
checkAdjacentElement( dir )
radio
button in the group and selects the one adjacent to it. If the argument dir is true
, the next radio button is selected. If it is false
, the previous radio button is selected.getIndexOfItem( item )
getItemAtIndex( index )
insertItemAt( index, label, value )
removeItemAt( index )
nsIAccessibleProvider
, nsIDOMXULSelectControlElement