Hi all..
can someone look at the following test code and explain why I get the error:
Line: 9
Char: 2
Error: Object doesn't support this property or method
Code: 0
.
.
line 9 is the javsacript code
Earnie Eng
can someone look at the following test code and explain why I get the error:
Line: 9
Char: 2
Error: Object doesn't support this property or method
Code: 0
.
.
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">
<!--
function setText(frmObject)
{
document.getElementByID("displayTextDiv").innerHTML=frmObject.value+" - size";[red]line 9[/red]
}
// -->
</script>
</head>
<body>
<form name="form1" method="post" action="">
<select name="lstItems" id="lstItems" onChange="setText(this);">
<option value="S" selected>Small</option>
<option value="M">Medium</option>
<option value="L">Large</option>
</select>
</form>
<div id="displayTextDiv">Content for id "displayTextDiv" Goes Here</div>
</body>
</html>
line 9 is the javsacript code
Earnie Eng