var radios = document.getElementByTagName("fieldset");
var inputs = radios.getElementsByTagName("input");
if (inputs.type == "radio" && inputs.name == "StatusServiceNow" && inputs.value == "1")
For the variable is actually base on the HTML code below:
1)Line 3, the function must be getElementsByTagName(...)
2)It is not a good idea to create your own customize tag in HTML. If you want a field, use div tag instead.
3)You could simply use getElementsByTagName("input") and work only those with type radio and the specific name.
5)The call for input.name won't work. You need to use input.getAttribute("name") instead.