You cannot do it in one shot.
You have three separate elements, so you have to disable them one at a time. It is not possible to use simple Javascript to disable all three elements at once.
document.formName.disableme returns an array, so you cannot access its properties, but you can scroll through the elements and access the properties for each element:
var radios = document.formName.disableme; for (var i = 0; i < radios.length; i++) { radios[i].disabled = true; }
Demo: http://jsfiddle.net/Guffa/2uUKw/
source share