I'm not quite happy with this solution, but finally I followed this up in the DOC Gecko documentation.
name gets or sets the name attribute of the DOM object, it applies only to the following elements: anchor, applet, form, frame, iframe, image, input, map, meta, object, option, param, select and textarea.
HTMLElement.name = string; var elName = HTMLElement.name; var fControl = HTMLFormElement.elementName; var controlCollection = HTMLFormElement.elements.elementName;
More details here: https://developer.mozilla.org/en/DOM/element.name
So, I suppose this is a standardized way to continue (although best practice may not exist ...)
document.getElementById('myForm').elements.myRadios
source share