I am looking for code that will disable my drop-down menu until the page has fullt loaded. Here is my drop-down at present:
<select name="connection" style="font-size : 10;" onchange="javascript
: addCon(this.options[this.selectedIndex].value)" disabled>
<option value="select">Please Select</option>
<%
for i = LBound(conArr) to UBound(conArr)
%>
<option value="<%=conArr(i)%>,<%=airArr(i)%>,<%=rbdArr(i)% >">
<%
response.write "(" & replace(conArr(i),"/"," - ") &")"
if airArr(i) <> "*" then
airDisp = replace(airArr(i), "*", rsFareDisp("air_cd"))
airDisp = replace(airDisp, "/", " - ")
response.write " (" & airDisp &")"
end if
if rbdArr(i) <> "*" then
rbdDisp = replace(rbdArr(i), "*", "Any Class")
rbdDisp = replace(rbdDisp, "/", " to ")
response.write " (" & rbdDisp &")"
end if
%>
</option>
<%next%>
</select>
Its called connection.
I have code already that will disable a radio button until the page is loaded. Here it is below:
function init()
{
var colRadio = document.getElementsByName("out");
if (colRadio.length)
{
for (var i = 0; i < colRadio.length; i++)
{
colRadio[i].disabled = false;
}
}
else
{
colRadio.disabled = false;
}
}
Am i needing something like this?
Thanks.
Picco
www.crmpicco.co.uk