Gyto
10-12-2006, 10:22 AM
Hi there, this seems extremely simple but for some reason I can't see the problem with it.....maybe a fresh pair of eyes will help! I have the following javascript function and listbox:
<script type="text/javascript">
function IntOrExt()
{
if (document.FormName.IntOrExt.Value == "Int")
{
document.FormName.SecondaryExtRangeFrom.disabled=false;
document.FormName.SecondaryExtRangeTo.disabled=false;
}
else
{
document.FormName.SecondaryExtRangeFrom.disabled=true;
document.FormName.SecondaryExtRangeTo.disabled=true;
}
}
</script>
<select name="IntOrExt" id="IntOrExt" style="width:188px" onchange="IntOrExt()">
<option selected="selected" value="Ext">External Numbers</option>
<option value="Int">Internal Number Range</option>
</select>
When I change the value of the listbox I get the error:
"Error: Object doesn't support this property or method"
Any ideas why?!
Thanks
<script type="text/javascript">
function IntOrExt()
{
if (document.FormName.IntOrExt.Value == "Int")
{
document.FormName.SecondaryExtRangeFrom.disabled=false;
document.FormName.SecondaryExtRangeTo.disabled=false;
}
else
{
document.FormName.SecondaryExtRangeFrom.disabled=true;
document.FormName.SecondaryExtRangeTo.disabled=true;
}
}
</script>
<select name="IntOrExt" id="IntOrExt" style="width:188px" onchange="IntOrExt()">
<option selected="selected" value="Ext">External Numbers</option>
<option value="Int">Internal Number Range</option>
</select>
When I change the value of the listbox I get the error:
"Error: Object doesn't support this property or method"
Any ideas why?!
Thanks