This is only for switches, but still useful.
Get
$$('input:checked[name="radio_name"]')[0].value
Set
$$('input[name="radio_name"][value="to_select"]')[0].checked = true
"radio_name" is the name of your radio group. "to_select" - whatever value you choose. "[0]" works because only 1 radio book can be checked at a time.
On the side of the note, I don't seem to like the prototype. JQuery is much simpler, but you should use what you need to use.
source share