My code as it stands:
<script language="JavaScript" type="text/javascript">
function init()
{
for (i = 0; i < document.forms[i].elements["out"].length; i++)
{
document.forms[i].elements["out"].disabled = false;
alert ("No. of netfares = "+document.forms[i].elements["out"].length+"");
}
}
</script>
Body:
<body bgcolor="#F5F5F5" onLoad="InitializeTimer();init();">
The radio button(s):
<input type="radio" name="out" onclick="javascript
: oSeg('<%=depFareID%>','<%=depContractID%>','<%=rsC ont("air_cds")%>','<%=invalidClass%>', '<% if ConFlag = false and preisdirect = true then response.write via& ",*" & ",*" else response.write "*" end if%>','<%=preisdirect%>','<% if preisdirect = true then response.write preaddoncost else response.write "*" end if%>','<%= pre_addonRBD %>','<%= pre_addonCD %>','<%= conFlag %>');" DISABLED>
The alert give me the value '8' which is correct, but it doesnt enable the radio buttons when the page is loaded - the just stay disabled
www.crmpicco.co.uk