Your question is tagged javascript and prototypejs . If you want more syntactic sugar from PrototypeJS then the answer might look like
$$('input[type="radio"]:checked').invoke('setValue', false);
translating from Prototype into English sounds like invoke setValue(false) operation on all checked radio buttons .
You can use a somewhat similar design to search in one form.
$('yourFormId').select('input[type="radio"]:checked').invoke('setValue', false);
If you need plain old IE6-compatible JavaScript, then the answer will be
var inputs = document.getElementsByTagName('input'); for (var i = 0, len = inputs.length; i < len; ++i) { if (inputs[i].type === "radio") { inputs[i].checked = false; } }
source share